Class GuiInfoRow<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.GuiInfoRow<G,A,R,T>
-
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>
AGuiInfothat fills one component horizontally.
-
-
Constructor Summary
Constructors Constructor Description GuiInfoRow(@NotNull DialogAttribute<G,A,R,T> attribute, @NotNull java.awt.Component row)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable 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.@Nullable java.awt.ComponentgetLabel()Returns the label to display in the first column ornull.@NotNull 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
-
GuiInfoRow
public GuiInfoRow(@NotNull @NotNull DialogAttribute<G,A,R,T> attribute, @NotNull @NotNull java.awt.Component row)Creates a new instance.- Parameters:
attribute- the dialog attribute this entry representsrow- the component to display filled horizontally
-
-
Method Detail
-
getLabel
@Nullable public @Nullable 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
@Nullable public @Nullable 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
@NotNull public @NotNull 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.
-
-