All Implemented Interfaces:
GomCheckable, GomElement, GomFormElement, GomHideable, GomLangInfoProvider, GomSearchRelevancy, GomSingleLineable, LineBreakable, Serializable

@NonExtendable public class GomDate extends AbstractGomFormElement implements GomSingleLineable
Implementation of a Gui XML date element.
Since:
2.0
See Also:
  • Field Details

  • Constructor Details

    • GomDate

      public GomDate()
  • 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.
    • getAllowInput

      public YesNo getAllowInput()
      Indicates if this component allows manual input
      Since:
      2.0
    • setAllowInput

      public void setAllowInput(YesNo allowInput)
      Sets if this component allows manual input
      Since:
      2.0
    • getIgnoreFaults

      @Deprecated(since="4.2.213") public YesNo getIgnoreFaults()
      Deprecated.
      since 4.2.213 - no replacement
      Indicates if input not matching the format is forbidden
      Since:
      2.0
    • setIgnoreFaults

      @Deprecated(since="4.2.213") public void setIgnoreFaults(YesNo ignoreFaults)
      Deprecated.
      since 4.2.213 - no replacement
      Sets if input not matching the format is forbidden
      Since:
      2.0
    • 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
    • getMode

      public DateTimeMode getMode()
      The date/time mode for handling values
      Since:
      4.2.200
    • setMode

      public void setMode(DateTimeMode mode)
      Sets the date/time mode for handling values
      Since:
      4.2.200
    • getLangInfos

      public GomDateLangInfos getLangInfos()
      Description copied from class: AbstractGomFormElement
      Provides language dependent information on this form element, like a label and description for multiple languages.
      Specified by:
      getLangInfos in interface GomLangInfoProvider
      Overrides:
      getLangInfos in class AbstractGomFormElement
      Returns:
      A language information container.
    • getPreset

      public DatePreset getPreset()
      Description copied from class: AbstractGomFormElement
      Provides the mode for handling preset value for this form element.
      Specified by:
      getPreset in interface GomFormElement
      Overrides:
      getPreset in class AbstractGomFormElement
      Returns:
      The preset mode. Defaults to default.
    • setPreset

      public void setPreset(DatePreset preset)
      Sets the preset mode to be used
      Since:
      4.0
    • allowsInput

      public boolean allowsInput()
      Convenience API for getAllowInput() returning a boolean value.
      Since:
      4.0
    • singleLine

      public boolean singleLine()
      Convenience API for getSingleLine() returning a boolean value.
      Since:
      4.0
    • mode

      @NotNull public @NotNull DateTimeMode mode()
      Convenience method for getMode() returning a non-null value.
      Returns:
      the mode of DateTimeMode.DATETIME if not available
      Since:
      4.2.102
    • preset

      @NotNull public @NotNull DatePreset preset()
      Description copied from class: AbstractGomFormElement
      Convenience method: Provides the preset mode for this form element as a non-null value
      Specified by:
      preset in interface GomFormElement
      Overrides:
      preset in class AbstractGomFormElement
      Returns:
      The preset mode.