Class GuiInfo<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>
-
- Direct Known Subclasses:
GuiInfoGlue,GuiInfoRow,GuiInfoTwoColumn
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.ObjectInformation about one attribute line in aGameObjectAttributesDialog.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @NotNull DialogAttribute<G,A,R,T>getAttribute()Returns theDialogAttributethis entry represents.abstract @Nullable java.awt.ComponentgetComponent()Returns the component to display in the second column ornull.abstract @Nullable java.awt.ComponentgetGlue()Returns the glue component to display filled both horizontally and vertically ornull.abstract @Nullable java.awt.ComponentgetLabel()Returns the label to display in the first column ornull.abstract @Nullable java.awt.ComponentgetRow()Returns the row component to display filled horizontally ornull.
-
-
-
Constructor Detail
-
GuiInfo
protected GuiInfo(@NotNull @NotNull DialogAttribute<G,A,R,T> attribute)Creates a new instance.- Parameters:
attribute- the dialog attribute this entry represents
-
-
Method Detail
-
getAttribute
@NotNull public @NotNull DialogAttribute<G,A,R,T> getAttribute()
Returns theDialogAttributethis entry represents.- Returns:
- the dialog attribute
-
getLabel
@Nullable public abstract @Nullable java.awt.Component getLabel()
Returns the label to display in the first column ornull. If non-null, bothgetRow()andgetGlue()arenullandgetComponent()is non-null.- Returns:
- the label
-
getComponent
@Nullable public abstract @Nullable java.awt.Component getComponent()
Returns the component to display in the second column ornull. If non-null, bothgetRow()andgetGlue()arenullandgetLabel()is non-null.- Returns:
- the label
-
getRow
@Nullable public abstract @Nullable java.awt.Component getRow()
Returns the row component to display filled horizontally ornull. If non-null, all ofgetLabel(),getComponent(), andgetGlue()arenull.- Returns:
- the row component
-
getGlue
@Nullable public abstract @Nullable java.awt.Component getGlue()
Returns the glue component to display filled both horizontally and vertically ornull. If non-null, all ofgetLabel(),getComponent(), andgetRow()arenull.- Returns:
- the glue component
-
-