All Implemented Interfaces:
GomCheckable, GomElement, GomLangInfoProvider, GomNameable, Serializable

@NonExtendable public class GomLabel extends AbstractGomLangInfoProvider implements GomNameable
Default implementation for a GOM label element.
Since:
4.0
See Also:
  • Field Details

  • Constructor Details

    • GomLabel

      public GomLabel()
  • Method Details

    • getDefaultTag

      protected String getDefaultTag()
      Description copied from class: AbstractGomElement
      Return the default tag for a gom element.
      Specified by:
      getDefaultTag in class AbstractGomElement
      Returns:
      The elements default tag.
    • getName

      public Designator getName()
      Description copied from interface: GomNameable
      Get the name identifying the element.
      Specified by:
      getName in interface GomNameable
      Returns:
      The name.
    • setName

      public void setName(Designator name)
      Description copied from interface: GomNameable
      Set the name that identifies the element.
      Specified by:
      setName in interface GomNameable
      Parameters:
      name - The name.
    • getBold

      public YesNo getBold()
      Bold display mode of label
      Since:
      4.0
    • setBold

      public void setBold(YesNo bold)
      Sets bold display mode of label
      Since:
      4.0
    • getItalic

      public YesNo getItalic()
      Italic display mode of label
      Since:
      4.0
    • setItalic

      public void setItalic(YesNo italic)
      Sets italic display mode of label
      Since:
      4.0
    • getSize

      public PositiveInteger getSize()
      Size for displaying the label
      Since:
      4.0
    • setSize

      public void setSize(PositiveInteger size)
      Sets the size for displaying the label
      Since:
      4.0
    • getLangInfos

      public DefaultGomLangInfos getLangInfos()
      Description copied from class: AbstractGomLangInfoProvider
      Provides the language information.
      Specified by:
      getLangInfos in interface GomLangInfoProvider
      Overrides:
      getLangInfos in class AbstractGomLangInfoProvider
      Returns:
      The language information container.
    • name

      public String name()
      Description copied from interface: GomNameable
      Get the name of this form element.
      Specified by:
      name in interface GomNameable
      Returns:
      The name.
    • bold

      public boolean bold()
      Convenience API for getBold() returning a boolean value
      Since:
      4.0
    • italic

      public boolean italic()
      Convenience API for getItalic() returning a boolean value
      Since:
      4.0
    • size

      public int size()
      Convenience API for getSize() returning a default value if unset
      Returns:
      the value of getSize() or 12 if unset
      Since:
      4.0
    • verify

      public void verify() throws IllegalStateException
      Description copied from interface: GomCheckable
      Verify the element to be fulfill its syntactic constraints.
      Specified by:
      verify in interface GomCheckable
      Throws:
      IllegalStateException - If the element is not correctly set up.