Class OutputDate

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Arrangeable, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class OutputDate extends Output
This class implements a the graphic user interface element used to display a date in output
See Also:
GCApi:
component
  • Field Details

    • _strSdfR

      protected String _strSdfR
    • _strSdfW

      protected String _strSdfW
    • _sdf

      protected SimpleDateFormat _sdf
    • _range

      protected int _range
    • FROM

      public static final String FROM
      String that defines that the field will be used to set the start of a range
      See Also:
    • TO

      public static final String TO
      String that defines that the field will be used to set the end of a range
      See Also:
  • Constructor Details

    • OutputDate

      public OutputDate()
      Creates an OutputDate
  • Method Details

    • setSDF

      public void setSDF(String s)
      Sets the format in which the date is presented within the field
      Parameters:
      s - The format for the output of the date
    • setSDFWRITE

      public void setSDFWRITE(String s)
      Sets the format in which the date is passed to the server when the field is submitted
      Parameters:
      s - The string use to format of the date
    • setRANGE

      public void setRANGE(String s)
      Defines if the field belongs to a date range
      Parameters:
      s - Possible values are: FROM (the field is used to set the start of the range. If the date isn't set, it is automatically set to DATE_MIN field that is interpreted as 01/01/1800) and TO (the field is used to set the end of the range. If the date isn't set, it is automatically set to DATE_MAX field that is interpreted as 01/01/2999)
    • setup

      protected void setup()
      Description copied from class: Component
      Setup the Component
      Overrides:
      setup in class Component
    • prepareValue

      protected String prepareValue()
      Overrides:
      prepareValue in class Output