Class InputLong

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:
InputLongDataCollection

The class implements a numeric input field in which the user can insert a long number.
The framework allows the user to enter only numbers within this type of field, so the programmers doesn't have to deal with checks in this sense. Furthermore it is possible to set some more constraints about the value (maximum, minimum) that the user is allowed to insert
See Also:
GCApi:
component
  • Field Details

    • _any

      protected Any _any
    • _less

      protected String _less
    • _greater

      protected String _greater
    • _msgCampoMaggioreUguale

      protected String _msgCampoMaggioreUguale
    • _msgCampoMinoreUguale

      protected String _msgCampoMinoreUguale
    • _msgCampoNumerico

      protected String _msgCampoNumerico
  • Constructor Details

    • InputLong

      public InputLong()
      Creates an InputLong
  • Method Details

    • setLESS

      public void setLESS(String s)
      Sets the constraint about the maximum value. The value inserted by the user is considered valid only if it's lower or equal than the one set by this method.
      Parameters:
      s - The string that represents the maximum limit
    • setGREATER

      public void setGREATER(String s)
      Sets the constraint about the minimum value. The value inserted by the user is considered valid only if it's higher than the one set by this method.
      Parameters:
      s - The string that represents the minimum limit
    • setup

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

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

      protected String prepareValue()
      Overrides:
      prepareValue in class Input
    • control

      protected void control(org.apache.ecs.html.Input i, EntitySet es)
      Overrides:
      control in class Input
    • validate

      protected void validate(org.apache.ecs.html.Input i, EntitySet es, boolean ro)
      Overrides:
      validate in class InputRegExp
    • validateConcreteValue

      protected void validateConcreteValue(String name, Object value, boolean strong, Map arriving) throws ValidationException
      Overrides:
      validateConcreteValue in class InputRegExp
      Throws:
      ValidationException
    • getDefaultValue

      public Object getDefaultValue()
      Description copied from class: Input
      Gets the default value set for this component.
      The default value of the component is the value set for the attribute value into the xml. See Input.setVALUE(String)
      Overrides:
      getDefaultValue in class Input
      Returns:
      The default value set for this component
    • 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 InputRegExp
      Parameters:
      dataAttribute - a non-null DataAttribute used to set model properties