Class GuiInfoTwoColumn<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,T extends ArchetypeAttribute>
- java.lang.Object
-
- net.sf.gridarta.gui.dialog.gameobjectattributes.GuiInfo<G,A,R,T>
-
- net.sf.gridarta.gui.dialog.gameobjectattributes.GuiInfoTwoColumn<G,A,R,T>
-
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>
AGuiInfothat displays a label and another component in two columns.
-
-
Constructor Summary
Constructors Constructor Description GuiInfoTwoColumn(@NotNull DialogAttribute<G,A,R,T> attribute, @NotNull java.awt.Component label, @NotNull java.awt.Component component)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.awt.ComponentgetComponent()Returns the component to display in the second column ornull.@Nullable java.awt.ComponentgetGlue()Returns the glue component to display filled both horizontally and vertically ornull.@NotNull java.awt.ComponentgetLabel()Returns the label to display in the first column ornull.@Nullable java.awt.ComponentgetRow()Returns the row component to display filled horizontally ornull.-
Methods inherited from class net.sf.gridarta.gui.dialog.gameobjectattributes.GuiInfo
getAttribute
-
-
-
-
Constructor Detail
-
GuiInfoTwoColumn
public GuiInfoTwoColumn(@NotNull @NotNull DialogAttribute<G,A,R,T> attribute, @NotNull @NotNull java.awt.Component label, @NotNull @NotNull java.awt.Component component)Creates a new instance.- Parameters:
attribute- the dialog attribute this entry representslabel- the label to display in the first columncomponent- the component to display in the second column
-
-
Method Detail
-
getLabel
@NotNull public @NotNull java.awt.Component getLabel()
Description copied from class:GuiInfoReturns the label to display in the first column ornull. If non-null, bothGuiInfo.getRow()andGuiInfo.getGlue()arenullandGuiInfo.getComponent()is non-null.
-
getComponent
@NotNull public @NotNull java.awt.Component getComponent()
Description copied from class:GuiInfoReturns the component to display in the second column ornull. If non-null, bothGuiInfo.getRow()andGuiInfo.getGlue()arenullandGuiInfo.getLabel()is non-null.- Specified by:
getComponentin classGuiInfo<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,T extends ArchetypeAttribute>- Returns:
- the label
-
getRow
@Nullable public @Nullable java.awt.Component getRow()
Description copied from class:GuiInfoReturns the row component to display filled horizontally ornull. If non-null, all ofGuiInfo.getLabel(),GuiInfo.getComponent(), andGuiInfo.getGlue()arenull.
-
getGlue
@Nullable public @Nullable java.awt.Component getGlue()
Description copied from class:GuiInfoReturns the glue component to display filled both horizontally and vertically ornull. If non-null, all ofGuiInfo.getLabel(),GuiInfo.getComponent(), andGuiInfo.getRow()arenull.
-
-