Class GuiInfo<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>,​T extends ArchetypeAttribute>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected GuiInfo​(@NotNull DialogAttribute<G,​A,​R,​T> attribute)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull DialogAttribute<G,​A,​R,​T> getAttribute()
      Returns the DialogAttribute this entry represents.
      abstract @Nullable java.awt.Component getComponent()
      Returns the component to display in the second column or null.
      abstract @Nullable java.awt.Component getGlue()
      Returns the glue component to display filled both horizontally and vertically or null.
      abstract @Nullable java.awt.Component getLabel()
      Returns the label to display in the first column or null.
      abstract @Nullable java.awt.Component getRow()
      Returns the row component to display filled horizontally or null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 the DialogAttribute this entry represents.
        Returns:
        the dialog attribute
      • getLabel

        @Nullable
        public abstract @Nullable java.awt.Component getLabel()
        Returns the label to display in the first column or null. If non-null, both getRow() and getGlue() are null and getComponent() is non-null.
        Returns:
        the label
      • getComponent

        @Nullable
        public abstract @Nullable java.awt.Component getComponent()
        Returns the component to display in the second column or null. If non-null, both getRow() and getGlue() are null and getLabel() is non-null.
        Returns:
        the label
      • getRow

        @Nullable
        public abstract @Nullable java.awt.Component getRow()
        Returns the row component to display filled horizontally or null. If non-null, all of getLabel(), getComponent(), and getGlue() are null.
        Returns:
        the row component
      • getGlue

        @Nullable
        public abstract @Nullable java.awt.Component getGlue()
        Returns the glue component to display filled both horizontally and vertically or null. If non-null, all of getLabel(), getComponent(), and getRow() are null.
        Returns:
        the glue component