Class ColumnInputDate

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

@Component public class ColumnInputDate extends ColumnInputRegExp
This component extends ColumnInputRegExp and must be used to insert a date input field as a column.
See Also:
GCApi:
component
  • Field Details

  • Constructor Details

    • ColumnInputDate

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

    • setup

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

      public void setSDF(String s)
      Set the date format will be sent to server with submit of the field (see SimpleDateFormat). If it isn't set the default value is "dd/MM/yy".
      Parameters:
      s - The string of the date format.
    • setSDFWRITE

      public void setSDFWRITE(String s)
      Set the date format to show in the field or accepted if the user enter the value manually (see SimpleDateFormat). If it isn't set the default value is "dd/MM/yyyy".
      Parameters:
      s - The string of the date format.
    • setRANGE

      public void setRANGE(String s)
      Set the field as a part of a date range.
      Parameters:
      s - String to define which type of range you are defining. Below are the allowed values:
      • "FROM": set the start of the date range. If the date isn't set, it is automatically set to DATE_MIN
      • "TO": set the end of the date range. If the date isn't set, it is automatically set to DATE_MAX
    • 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 ColumnInput
      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
    • validate

      protected void validate(org.apache.ecs.html.Input i, EntitySet es, boolean ro, int row)
      Overrides:
      validate in class ColumnInputRegExp
    • prepareName

      protected String prepareName()
      Overrides:
      prepareName in class ColumnInput
    • prepareValue

      protected String prepareValue(ArrayList al)
      Overrides:
      prepareValue in class ColumnInput
    • getDefaultLayoutLabel

      public String getDefaultLayoutLabel()
      Overrides:
      getDefaultLayoutLabel in class ColumnInput