Class ColumnDate

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 @Ignore("TRUNCATE") public class ColumnDate extends Column
This component extends Column and must be used to represent Date 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:
    • _rangelimit

      protected String _rangelimit
    • _da

      protected String _da
    • _a

      protected String _a
    • _prefix

      protected String _prefix
    • _format

      protected SimpleDateFormat _format
  • Constructor Details

    • ColumnDate

      public ColumnDate()
      Creates a ColumnDate
  • Method Details

    • setPREFIX

      public void setPREFIX(String s)
      Defines the string placed before the date in the case that it is part of a range
      Parameters:
      s - The prefix for the date (for example "from:" or "to:")
    • setRANGE

      public void setRANGE(String s)
      Defines if the date field belongs to a date range
      Parameters:
      s - Possible values are: FROM (the field is used to set the start of the range) and TO (the field is used to set the end of the range)
    • setRANGELIMIT

      public void setRANGELIMIT(String rangelimit)
      Sets the string that will be displayed when the values reach the limit value that is Container.DATE_MIN or Container.DATE_MAX depending if the value of the range is set to FROM or TO
      Parameters:
      rangelimit - The string displayed when the values reach the range limits
    • 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
    • setup

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

      public org.apache.ecs.Element getHtmlFoot(HashGetter footValues)
      Description copied from class: Column
      Returns the footer values of the column
      Overrides:
      getHtmlFoot in class Column
      Parameters:
      footValues - The HashGetter that contains the values
      Returns:
      The footer values of the column
    • 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