Class ColumnInputMulti

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 ColumnInputMulti extends ColumnInput implements ValueValidator
This component extends ColumnInput and must be used to insert an input field as a column.
This component can depend from other Column value, and some constrain can be applied, like the type of the field, the maximum length, the size, the format, the key and if cant be null.
See Also:
GCApi:
component
  • Field Details

    • TIPODATO_NUMBER

      public static final int TIPODATO_NUMBER
      See Also:
    • TIPODATO_STRING

      public static final int TIPODATO_STRING
      See Also:
    • TIPODATO_DATE

      public static final int TIPODATO_DATE
      See Also:
    • TIPODATO_BOOLEAN

      public static final int TIPODATO_BOOLEAN
      See Also:
    • TIPODATO_DATETIME

      public static final int TIPODATO_DATETIME
      See Also:
    • TIPODATO_TIME

      public static final int TIPODATO_TIME
      See Also:
    • TIPODATO_COMBOBOX

      public static final int TIPODATO_COMBOBOX
      See Also:
    • TIPODATO_DOUBLE

      public static final int TIPODATO_DOUBLE
      See Also:
    • TIPODATO_EURO

      public static final int TIPODATO_EURO
      See Also:
    • TIPODATO_SCHEDA

      public static final int TIPODATO_SCHEDA
      See Also:
    • TIPODATO_LOOKUP

      public static final int TIPODATO_LOOKUP
      See Also:
    • TIPODATO_DLLVALUE

      public static final int TIPODATO_DLLVALUE
      See Also:
    • TIPODATO_FILE

      public static final int TIPODATO_FILE
      See Also:
    • LABELTRUE

      public static final String LABELTRUE
      See Also:
    • LABELFALSE

      public static final String LABELFALSE
      See Also:
    • _notnullField

      protected String _notnullField
    • _notnullIndex

      protected int _notnullIndex
    • _typeField

      protected String _typeField
    • _typeIndex

      protected int _typeIndex
    • _maxlengthField

      protected String _maxlengthField
    • _maxlengthIndex

      protected int _maxlengthIndex
    • _sizeField

      protected String _sizeField
    • _sizeIndex

      protected int _sizeIndex
    • _formatField

      protected String _formatField
    • _formatIndex

      protected int _formatIndex
    • _keyField

      protected String _keyField
    • _keyIndex

      protected int _keyIndex
    • _autoeventField

      protected String _autoeventField
    • _autoeventIndex

      protected int _autoeventIndex
    • autoEventParamField

      protected String autoEventParamField
    • autoEventParamIndex

      protected int autoEventParamIndex
    • autoEventMsgField

      protected String autoEventMsgField
    • autoEventMsgIndex

      protected int autoEventMsgIndex
    • _strSdfTime

      protected String _strSdfTime
    • _sdfTime

      protected SimpleDateFormat _sdfTime
    • _regexpTime

      protected String _regexpTime
    • _msgTime

      protected String _msgTime
    • _msg2Time

      protected String _msg2Time
    • hourSystem

      protected String hourSystem
    • _strSdfDateWrite

      protected String _strSdfDateWrite
    • _strSdfDateRead

      protected String _strSdfDateRead
    • _sdfDateWrite

      protected SimpleDateFormat _sdfDateWrite
    • _sdfDateRead

      protected SimpleDateFormat _sdfDateRead
    • _regexpDate

      protected String _regexpDate
    • _msgDate

      protected String _msgDate
    • titles

      protected String[] titles
    • _msgCampoValoreNonValido

      protected String _msgCampoValoreNonValido
    • _msgErroreDato

      protected String _msgErroreDato
    • _msgErroreTipo

      protected String _msgErroreTipo
  • Constructor Details

    • ColumnInputMulti

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

    • setNOTNULLFIELD

      public void setNOTNULLFIELD(String s)
      Sets the name of a filed that must be not null.
      Parameters:
      s - The name of the attribute
    • setMAXLENGTHFIELD

      public void setMAXLENGTHFIELD(String s)
      Sets the maximum length of an attribute of the input field.
      Parameters:
      s - The name of the attribute
    • setSIZEFIELD

      public void setSIZEFIELD(String s)
      Sets the size of an attribute of the input field.
      Parameters:
      s - The name of the attribute
    • setFORMATFIELD

      public void setFORMATFIELD(String s)
      Sets the format attribute of the input field.
      Parameters:
      s - The name of the attribute
    • setKEYFIELD

      public void setKEYFIELD(String s)
      Sets the key attribute of the input field.
      Parameters:
      s - The name of the attribute
    • setTYPEFIELD

      public void setTYPEFIELD(String s)
      Sets the type attribute of the input field.
      Parameters:
      s - The name of the attribute
    • setAUTOEVENTFIELD

      public void setAUTOEVENTFIELD(String s)
      Sets the name of an event associated to the field and triggered when the user changes its value. By setting an autoevent, a form submit will be automatically performed when the field loses the focus.
      Parameters:
      s - The name of the event triggered when the user changes the field value
    • setAUTOEVENTPARAMFIELD

      public void setAUTOEVENTPARAMFIELD(String s)
      Sets the name of an event param associated to the field and triggered when the user changes its value.
      Parameters:
      s - The name of the event triggered when the user changes the field value
    • setAUTOEVENTMSGFIELD

      public void setAUTOEVENTMSGFIELD(String s)
      Sets the alert's message associated to the field and triggered when the user changes its value.
      Parameters:
      s - The alert's message that will be shown when the user changes the field value
    • setup

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

      protected Double validate(org.apache.ecs.html.Input i, EntitySet es, boolean ro)
      Overrides:
      validate in class ColumnInput
    • validateInput

      protected void validateInput(org.apache.ecs.html.Input i, EntitySet es, int row, ArrayList al)
    • validateLookup

      protected void validateLookup(org.apache.ecs.html.Select sel, EntitySet es, ArrayList al)
    • validateLong

      protected void validateLong(org.apache.ecs.html.Input i, EntitySet es, int row, ArrayList al)
    • validateDouble

      protected void validateDouble(org.apache.ecs.html.Input i, EntitySet es, int row, ArrayList al)
    • validateEuro

      protected void validateEuro(org.apache.ecs.html.Input i, EntitySet es, int row, ArrayList al)
    • validateTime

      protected void validateTime(org.apache.ecs.html.Input i, EntitySet es, int row, ArrayList al)
    • validateDate

      protected void validateDate(org.apache.ecs.html.Input i, EntitySet es, int row, ArrayList al)
    • prepareName

      protected String prepareName(int row)
      Overrides:
      prepareName in class ColumnInput
    • setupMetaData

      public void setupMetaData(DBView dbv)
      Description copied from class: Column
      Called to init all the field starting form the DBView
      Overrides:
      setupMetaData in class Column
      Parameters:
      dbv - The DBView with all the field used in the init
    • maxlength

      protected int maxlength(ArrayList al)
    • size

      protected int size(ArrayList al)
    • notnull

      protected boolean notnull(ArrayList al)
    • type

      protected int type(ArrayList al)
    • format

      protected String format(ArrayList al)
    • keys

      protected String keys(ArrayList al)
    • autoevent

      protected String autoevent(ArrayList al)
    • autoEventParam

      protected String autoEventParam(ArrayList al)
    • autoEventMsg

      protected String autoEventMsg(ArrayList al)
    • 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
    • getHtmlRowString

      protected org.apache.ecs.Element getHtmlRowString(EntitySet es, int row, int pagerow, ArrayList al)
    • getHtmlRowLookup

      protected org.apache.ecs.Element getHtmlRowLookup(EntitySet es, int row, int pagerow, ArrayList al)
    • getHtmlRowComboBox

      protected org.apache.ecs.Element getHtmlRowComboBox(EntitySet es, int row, int pagerow, ArrayList al)
    • getHtmlRowCheckBox

      protected org.apache.ecs.Element getHtmlRowCheckBox(EntitySet es, int row, int pagerow, ArrayList al)
    • getHtmlRowLong

      protected org.apache.ecs.Element getHtmlRowLong(EntitySet es, int row, int pagerow, ArrayList al)
    • getHtmlRowDouble

      protected org.apache.ecs.Element getHtmlRowDouble(EntitySet es, int row, int pagerow, ArrayList al)
    • getHtmlRowEuro

      protected org.apache.ecs.Element getHtmlRowEuro(EntitySet es, int row, int pagerow, ArrayList al)
    • getHtmlRowTime

      protected org.apache.ecs.Element getHtmlRowTime(EntitySet es, int row, int pagerow, ArrayList al)
    • getHtmlRowDate

      protected org.apache.ecs.Element getHtmlRowDate(EntitySet es, int row, int pagerow, ArrayList al)
    • defaultAttributesInput

      protected void defaultAttributesInput(org.apache.ecs.html.Input i, int row, ArrayList al)
    • defaultAttributesLookup

      protected void defaultAttributesLookup(org.apache.ecs.html.Select select, int row, ArrayList al)
    • setPlaceholder

      public void setPlaceholder(String s)
      Sets the placeholder, the short hint that usually describes the expected value that appears in the field before the user enters a value.
      Overrides:
      setPlaceholder in class ColumnInput
      Parameters:
      s - The string that will appear as a placeholder in the field