Class AbstractGomTextualFormElement

All Implemented Interfaces:
GomCheckable, GomElement, GomFormElement, GomHideable, GomLangInfoProvider, GomSearchRelevancy, LineBreakable, Serializable
Direct Known Subclasses:
GomText, GomTextarea

@NonExtendable public abstract class AbstractGomTextualFormElement extends AbstractGomFormElement
Abstract base class for textual elements
Since:
2.0
See Also:
  • Constructor Details

    • AbstractGomTextualFormElement

      public AbstractGomTextualFormElement()
  • Method Details

    • getLength

      @Nullable public @Nullable PositiveInteger getLength()
      Width of the input form field
      Since:
      2.0
    • setLength

      public void setLength(@Nullable @Nullable PositiveInteger length)
      Sets the width of the input form field
      Since:
      2.0
    • getMaxInputLength

      @Nullable public @Nullable PositiveInteger getMaxInputLength()
      Maximum number of characters allowed for input
      Since:
      2.0
    • setMaxInputLength

      public void setMaxInputLength(@Nullable @Nullable PositiveInteger maxInputLength)
      Sets the maximum number of characters allowed for input
      Since:
      2.0
    • length

      public int length(int fallback)
      Convenience API for getLength() returning the specified fallback if the length is unset
      Parameters:
      fallback - the value to return if the length is unset
      Returns:
      the value of getLength() or the fallback if unset
      Since:
      2.0
    • maxInputLength

      public int maxInputLength(int fallback)
      Convenience API for getMaxInputLength() returning the specified fallback if the maximum length is unset
      Parameters:
      fallback - the value to return if the maximum length is unset
      Returns:
      the value of getMaxInputLength() or the fallback if unset
      Since:
      2.0