public class GuiInfoRow<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 fills one component horizontally.| Constructor and Description |
|---|
GuiInfoRow(@NotNull DialogAttribute<G,A,R,T> attribute,
@NotNull java.awt.Component row)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable 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. |
@Nullable java.awt.Component |
getLabel()
Returns the label to display in the first column or
null. |
@NotNull java.awt.Component |
getRow()
Returns the row component to display filled horizontally or
null. |
getAttributepublic GuiInfoRow(@NotNull
@NotNull DialogAttribute<G,A,R,T> attribute,
@NotNull
@NotNull java.awt.Component row)
attribute - the dialog attribute this entry representsrow - the component to display filled horizontally@Nullable public @Nullable java.awt.Component getLabel()
GuiInfonull. If
non-null, both GuiInfo.getRow() and GuiInfo.getGlue() are
null and GuiInfo.getComponent() is non-null.@Nullable public @Nullable java.awt.Component getComponent()
GuiInfonull. 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>@NotNull public @NotNull java.awt.Component getRow()
GuiInfonull.
If non-null, all of GuiInfo.getLabel(), GuiInfo.getComponent(),
and GuiInfo.getGlue() are null.@Nullable public @Nullable java.awt.Component getGlue()
GuiInfonull. If non-null, all of GuiInfo.getLabel(), GuiInfo.getComponent(), and GuiInfo.getRow() are null.