Class ColumnTime

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

@Component @Configurable public class ColumnTime extends Column
This component extends Column and must be used to represent time values
See Also:
GCApi:
component
  • Field Details

    • _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:
    • _format

      protected SimpleDateFormat _format
    • hourSystem

      protected String hourSystem
    • accept24

      protected boolean accept24
  • Constructor Details

    • ColumnTime

      public ColumnTime()
      Creates a ColumnTime
  • Method Details

    • setup

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

      public void setRANGE(String s)
      Defines if the time field belongs to a time range
      Parameters:
      s - Possible values are: FROM (the field is used to set the start of the range) , TO (the field is used to set the end of the range) and RANGE_FULL (the field is used with a full range from 00:00 to 24:00)
    • setFORMAT

      public void setFORMAT(String s)
      Sets forcibly the string used as the pattern to create the SimpleDateFormat
      Parameters:
      s - The pattern used to create the format for the time
    • getHtmlRow

      public org.apache.ecs.Element getHtmlRow(EntitySet es, int row, int pagerow, ArrayList al)
      Description copied from class: Column
      Returns the html element that defines the row
      Overrides:
      getHtmlRow in class Column
      Parameters:
      es - The EntitySet to which the element belongs
      row - The number of the row
      pagerow - The number ofd the page
      al - The list of values of the row
      Returns:
      The html element that defines the row
    • getDefaultLayoutLabel

      public String getDefaultLayoutLabel()
      Overrides:
      getDefaultLayoutLabel in class Column