public abstract class GuiInfo<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,T extends ArchetypeAttribute>
extends java.lang.Object
GameObjectAttributesDialog
.Modifier | Constructor and Description |
---|---|
protected |
GuiInfo(@NotNull DialogAttribute<G,A,R,T> attribute)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull DialogAttribute<G,A,R,T> |
getAttribute()
Returns the
DialogAttribute this entry represents. |
abstract @Nullable java.awt.Component |
getComponent()
Returns the component to display in the second column or
null . |
abstract @Nullable java.awt.Component |
getGlue()
Returns the glue component to display filled both horizontally and
vertically or
null . |
abstract @Nullable java.awt.Component |
getLabel()
Returns the label to display in the first column or
null . |
abstract @Nullable java.awt.Component |
getRow()
Returns the row component to display filled horizontally or
null . |
protected GuiInfo(@NotNull @NotNull DialogAttribute<G,A,R,T> attribute)
attribute
- the dialog attribute this entry represents@NotNull public @NotNull DialogAttribute<G,A,R,T> getAttribute()
DialogAttribute
this entry represents.@Nullable public abstract @Nullable java.awt.Component getLabel()
null
. If
non-null
, both getRow()
and getGlue()
are
null
and getComponent()
is non-null
.@Nullable public abstract @Nullable java.awt.Component getComponent()
null
. If
non-null
, both getRow()
and getGlue()
are
null
and getLabel()
is non-null
.@Nullable public abstract @Nullable java.awt.Component getRow()
null
.
If non-null
, all of getLabel()
, getComponent()
,
and getGlue()
are null
.@Nullable public abstract @Nullable java.awt.Component getGlue()
null
. If non-null
, all of getLabel()
, getComponent()
, and getRow()
are null
.