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