Class InputDouble

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:
InputDoubleDataCollection, InputMeasure

The class implements a numeric input field in which the user can insert a double number with separation from the integer part and the decimal one.
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, precision) that the user is allowed to insert
See Also:
GCApi:
component
  • Field Details

    • _any

      protected Any _any
    • _precision

      protected int _precision
    • _outputPrecision

      protected int _outputPrecision
    • _less

      protected String _less
    • _lessEqual

      protected String _lessEqual
    • _greater

      protected String _greater
    • _greaterEqual

      protected String _greaterEqual
    • _msgCampoMinore

      protected String _msgCampoMinore
    • _msgCampoMinoreUguale

      protected String _msgCampoMinoreUguale
    • _msgCampoMaggiore

      protected String _msgCampoMaggiore
    • _msgCampoMaggioreUguale

      protected String _msgCampoMaggioreUguale
    • _separator

      protected char _separator
    • _groupingSeparator

      protected char _groupingSeparator
    • _groupingSize

      protected int _groupingSize
  • Constructor Details

    • InputDouble

      public InputDouble()
      Creates an InputDouble
  • 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 than the one set by this method.
      Parameters:
      s - The string that represents the maximum limit
    • setLESSEQUAL

      public void setLESSEQUAL(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
    • setGREATEREQUAL

      public void setGREATEREQUAL(String s)
      Sets the constraint about the minimum value. The value inserted by the user is considered valid only if it's higher or equal 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
    • setPRECISION

      public void setPRECISION(String s)
      Sets the precision for the value
      Parameters:
      s - The string that represent the number of digits of the fractional part that the user can insert
    • setGROUPINGSIZE

      public void setGROUPINGSIZE(String s)
      Sets the number of digits that must occur between two grouping separators.
      Parameters:
      s - The string that represent the number of digits that must occur between two grouping separators.
    • setOUTPUTPRECISION

      public void setOUTPUTPRECISION(String s)
      Sets the output precision for the value. It is used to show the value in the field
      Parameters:
      s - The string that represent the number of digits of the fractional part.
    • 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