All Implemented Interfaces:
GomCheckable, GomElement, GomFormElement, GomHideable, GomLangInfoProvider, GomSearchRelevancy, GomSingleLineable, GomTransferHandling, LineBreakable, TextGomFormElement, Serializable
Direct Known Subclasses:
GomNumber

@NonExtendable public class GomText extends AbstractGomTextualFormElement implements TextGomFormElement, GomSingleLineable, GomTransferHandling
GOM implementation for text.
Since:
2.0
See Also:
  • Field Details

  • Constructor Details

    • GomText

      public GomText()
  • 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.
    • getPassword

      public TextDisplayMode getPassword()
      Mode for displaying the form field content
      Since:
      4.0
    • setPassword

      public void setPassword(TextDisplayMode password)
      Sets the mode for displaying the form field content
      Since:
      4.0
    • getEditable

      public YesNo getEditable()
      Indicates if editing is allowed
      Since:
      3.1
    • setEditable

      public void setEditable(YesNo editable)
      Sets if editing is allowed
      Since:
      3.1
    • getSingleLine

      public YesNo getSingleLine()
      Indicates if the component is single-line instead of being framed
      Since:
      4.0
    • setSingleLine

      public void setSingleLine(YesNo singleLine)
      Description copied from interface: GomSingleLineable
      Make the component be single-line instead of being framed
      Specified by:
      setSingleLine in interface GomSingleLineable
    • getTransferTypes

      @Nullable public @Nullable List<TransferType<?>> getTransferTypes(SpecialistsBroker broker)
      Description copied from interface: GomTransferHandling
      Returns a list of supported TransferType's, or null if transfer is not supported.
      Specified by:
      getTransferTypes in interface GomTransferHandling
      Parameters:
      broker - Broker for requesting services or providers.
      Returns:
      supported transfer types, or null.
    • displayMode

      @NotNull public @NotNull TextDisplayMode displayMode()
      Convenience API for getPassword() returning TextDisplayMode.PLAIN if unset
      Returns:
      the value of getPassword() or TextDisplayMode.PLAIN if unset
      Since:
      4.0
    • editable

      public boolean editable()
      Convenience API for getEditable() returning a boolean value
      Since:
      3.1
    • singleLine

      public boolean singleLine()
      Convenience API for getSingleLine() ()} returning a boolean value
      Since:
      4.0