Class OutputDTZ

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 OutputDTZ extends Output
The class implements an Output field to the graphic user interface element used to display a date, a time and a time zone in output. It's possible configure the field to show only components you want.
See Also:
GCApi:
component
  • Field Details

  • Constructor Details

    • OutputDTZ

      public OutputDTZ()
      Creates a new instance of OutputDTZ
  • Method Details

    • setCOMPONENTS

      public void setCOMPONENTS(String s)
      Set the components to show in output. The possible components are date, time and time zone.
      Parameters:
      s - The string that contains the combination of the three characters to use to configure which components to display:
      • 'd': date;
      • 't': time;
      • 'z': time zone.
      The order of the characters in the string is not deterministic.
    • setZONENAME

      public void setZONENAME(String zonename)
      Set the name of the field to use as time zone field. The field having this attribute is not time zone component, instead the field having the name passed as a parameter must be a time zone field.
      Parameters:
      zonename - The string that indicate the name of field to use as time zone settings.
    • setZONEVALUE

      public void setZONEVALUE(String zonevalue)
      Set the time zone component. The value to be set must exists or in the package within company.properties or within the time zone database of IANA.
      Parameters:
      zonevalue - The string that contains the value of time zone to set.
    • setRANGE

      public void setRANGE(String s)
      Set the output field as a part of a time range. It can be an interval of hours or dates. If the output field is used as part of a range of dates, the time component of field is not be displayed. The same with the date component in case the field is a part of a time range.
      Parameters:
      s - String to define which type of range you are defining. Below are the allowed values:
      • "DATE_FROM": set the start of the date range. If the date isn't set, it is automatically set to DATE_MIN
      • "DATE_TO": set the end of the date range. If the date isn't set, it is automatically set to DATE_MAX
      • "TIME_FROM": set the start of the time range. If the time isn't set, it is automatically set to TIME_MIN
      • "TIME_TO": set the end of the time range. If the time isn't set, it is automatically set to TIME_MAX
      • "FULL": set the range as date and hour passed.
    • setSDFD

      public void setSDFD(String s)
      Set the date format to show in the output field (see SimpleDateFormat). If it isn't set the default value is the value of the key "DATE_FORMAT_WRITE" in dictionary. If this also does not exits, set the format with the default value: ""dd/MM/yyyy""
      Parameters:
      s - The string of the date format.
    • setSDFT

      public void setSDFT(String s)
      Set the time format to show in the output field (see SimpleDateFormat). If it isn't set the default value is ""HH:mm"".
      Parameters:
      s - The string of the time format.
    • setup

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

      public org.apache.ecs.Element getHiddenHtml(Object generationhandle, EntitySet es)
      Description copied from interface: Arrangeable
      Returns the hidden but active html part of an hidden component
      Specified by:
      getHiddenHtml in interface Arrangeable
      Overrides:
      getHiddenHtml in class Output
      Parameters:
      generationhandle - the unique generatin handle
      es - the page entity set
      Returns:
      The html code of the hidden part of the component
    • prepareValue

      protected String prepareValue()
      Overrides:
      prepareValue in class Output
    • prepareValueZ

      protected TimeZone prepareValueZ()