Class InputText

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Arrangeable, Badgeable, ValueValidator, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable
Direct Known Subclasses:
InputCode, InputTextDataCollection

@Component @Configurable @ConfigurableAttribute(name="ROWS",label="Rows",type="LONG",properties={@Property(key="less",value="9223372036854775807"),@Property(key="greater",value="-9223372036854775808")}) @ConfigurableAttribute(name="COLS",label="Cols",type="LONG",properties={@Property(key="less",value="9223372036854775807"),@Property(key="greater",value="-9223372036854775808")}) @Ignore("SIZE") public class InputText extends Input
The class implements a textual InputText field. With this element it is possible create a textual field having certain rows and columns, and a minimum and maximum length of input.
See Also:
GCApi:
component
  • Field Details

  • Constructor Details

    • InputText

      public InputText()
  • Method Details

    • setROWS

      public void setROWS(String sRows)
      Set the number of rows that the element must have
      Parameters:
      sRows - Number of rows. It must be greater than 0.
    • getRows

      public String getRows()
      Gets the real rows value to apply.
      This method returns the value of the attribute based on if there is a user customization on the rows attribute. If there is no customization returns the default value.
      Returns:
      the rows size value to apply
    • setCOLS

      public void setCOLS(String sCols)
      Set the number of columns that the element must have
      Parameters:
      sCols - Number of columns. It must be greater than 0.
    • getCols

      public String getCols()
      Gets the real cols value to apply.
      This method returns the value of the attribute based on if there is a user customization on the cols attribute. If there is no customization returns the default value.
      Returns:
      the cols size value to apply
    • setMAX

      public void setMAX(String sMaxChar)
      Set the maximum length of the text to insert in the field.
      Parameters:
      sMaxChar - Maximum length. If value is lower of 0, the length is set to 1.
    • setMIN

      public void setMIN(String sMinChar)
      Set the minimum length of the text to insert in the field.
      Parameters:
      sMinChar - Minimum length. If value is lower of 0, the length is set to 1.
    • setup

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

      public org.apache.ecs.Element getContentHtml(Object generationhandle, EntitySet es)
      Override the method getContentHtml(generationhandle, es). It returns the html code that represents the active part of the input field, i.e. the field and the validation scripts.
      Specified by:
      getContentHtml in interface Arrangeable
      Overrides:
      getContentHtml in class Input
      Parameters:
      generationhandle - the unique generating handle
      es - The EntitySet to which the element belongs
      Returns:
      The html code of the input field or null if the field don't have a graphical representation
    • validate

      protected void validate(org.apache.ecs.html.TextArea i, EntitySet es, boolean ro)
    • validateUnchangingValue

      protected void validateUnchangingValue(String name, Object value, Object published, boolean strong, Map arriving) throws ValidationException
      Overrides:
      validateUnchangingValue in class Input
      Throws:
      ValidationException
    • control

      protected void control(org.apache.ecs.html.TextArea i, EntitySet es)
    • normalization

      protected String normalization(String value)
    • setConfiguredProperty

      public void setConfiguredProperty(Map<String,Serializable> properties)
      Description copied from interface: overit.geocall.ux.configurability.UIConfigurable
      Apply the user's properties customization into the component.
      Specified by:
      setConfiguredProperty in interface overit.geocall.ux.configurability.UIConfigurable
      Overrides:
      setConfiguredProperty in class Input
      Parameters:
      properties - The map containing the configured properties to set
    • setModelProperties

      public void setModelProperties(@NotNull @NotNull DataAttribute dataAttribute)
      Description copied from interface: overit.geocall.ux.edm.ModelConfigurable
      Sets the model properties based on the provided DataAttribute.
      Specified by:
      setModelProperties in interface overit.geocall.ux.edm.ModelConfigurable
      Overrides:
      setModelProperties in class Input
      Parameters:
      dataAttribute - a non-null DataAttribute used to set model properties