Open topic with navigation

com.hp.lft.sdk.web

## Class NumericFieldDescription

- java.lang.Object
- - com.hp.lft.sdk.internal.PropertiesDescriptionBase
  - - com.hp.lft.sdk.PropertiesDescription
    - - com.hp.lft.sdk.DescriptionBase
      - - com.hp.lft.sdk.web.WebBaseDescription
        - - com.hp.lft.sdk.web.WebElementDescription
          - - com.hp.lft.sdk.web.FormFieldDescription
            - - com.hp.lft.sdk.web.EditFieldBaseDescription
              - - com.hp.lft.sdk.web.EditFieldDescription
                - - com.hp.lft.sdk.web.NumericFieldDescription

- All Implemented Interfaces:
    CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, java.lang.Cloneable
  Direct Known Subclasses:
    SliderDescription

      public class NumericFieldDescription
      extends EditFieldDescription

  The description of a Web NumericField test object.

- - ### Nested Class Summary

    Modifier and Type | Class and Description
    --- | ---
    `static class` | `NumericFieldDescription.Builder` This class can be used to construct an instance of the NumericFieldDescription class using the builder pattern.
    `protected static class` | `NumericFieldDescription.Init<T extends NumericFieldDescription.Init<T>>` Helper class for NumericFieldDescription.Builder.

  - ### Field Summary

    - ### Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `properties`

  - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `` | `NumericFieldDescription()` Initializes a new instance of the NumericFieldDescription class.
    `protected` | `NumericFieldDescription(NumericFieldDescription.Init<?> init)` Initializes a new instance of the NumericFieldDescription class using the Builder pattern.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Double` | `getDefaultNumericValue()` Returns the initial value of the object, which is set when the object is reset.
    `java.lang.Double` | `getMax()` Returns the maximum value that can be entered in the field.
    `java.lang.Double` | `getMin()` Returns the minimum value that can be entered in the field.
    `java.lang.Double` | `getNumericValue()` Returns the current value in the number field.
    `void` | `setDefaultNumericValue(java.lang.Double defaultNumericValue)` Sets the default value that will be presented in the number field.
    `void` | `setMax(java.lang.Double max)` Sets the maximum value that can be entered in the field.
    `void` | `setMin(java.lang.Double min)` Sets the minimum value that can be entered in the field.
    `void` | `setNumericValue(java.lang.Double numericValue)` Sets the current value in the number field.

    - ### Methods inherited from class com.hp.lft.sdk.web.EditFieldDescription

      `getDefaultValue, getMaxLength, getPattern, getRowsCount, setDefaultValue, setDefaultValue, setMaxLength, setPattern, setPattern, setRowsCount`

    - ### Methods inherited from class com.hp.lft.sdk.web.EditFieldBaseDescription

      `getMaxCharsInLine, getPlaceholder, getValue, isReadOnly, isRequired, setMaxCharsInLine, setPlaceholder, setPlaceholder, setReadOnly, setRequired, setValue, setValue`

    - ### Methods inherited from class com.hp.lft.sdk.web.FormFieldDescription

      `getType, setType, setType`

    - ### Methods inherited from class com.hp.lft.sdk.web.WebElementDescription

      `getAccessibilityName, getCSSSelector, getRole, getXPath, setAccessibilityName, setAccessibilityName, setCSSSelector, setCSSSelector, setRole, setRole, setXPath, setXPath`

    - ### Methods inherited from class com.hp.lft.sdk.web.WebBaseDescription

      `cloneTo, getAbsoluteLocation, getAttributes, getClassName, getId, getInnerHTML, getInnerText, getLocation, getName, getOuterHTML, getOuterText, getSize, getStyles, getTagName, getTitle, isVisible, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttributes, setClassName, setClassName, setId, setId, setInnerHTML, setInnerHTML, setInnerText, setInnerText, setLocation, setLocation, setLocation, setName, setName, setOuterHTML, setOuterHTML, setOuterText, setOuterText, setSize, setSize, setSize, setStyles, setTagName, setTagName, setTitle, setTitle, setVisible`

    - ### Methods inherited from class com.hp.lft.sdk.DescriptionBase

      `getIndex, getIndexType, getVRI, setIndex, setIndexType, setVRI, setVRI`

    - ### Methods inherited from class com.hp.lft.sdk.PropertiesDescription

      `clone`

    - ### Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `getValueAs, getValueAsStringProperty, insertValue`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface com.hp.lft.sdk.CloneableObject

      `clone`

- - ### Constructor Detail

    - #### NumericFieldDescription

          public NumericFieldDescription()

      Initializes a new instance of the NumericFieldDescription class.

    - #### NumericFieldDescription

          protected NumericFieldDescription(NumericFieldDescription.Init<?> init)

      Initializes a new instance of the NumericFieldDescription class using the Builder pattern.
      Parameters:
        `init` - the Builder pattern.

  - ### Method Detail

    - #### setNumericValue

          public void setNumericValue(java.lang.Double numericValue)

      Sets the current value in the number field.
      Parameters:
        `numericValue` - the current value in the number field.

    - #### getNumericValue

          public java.lang.Double getNumericValue()

      Returns the current value in the number field.
      Returns:
        the current value in the number field.

    - #### setDefaultNumericValue

          public void setDefaultNumericValue(java.lang.Double defaultNumericValue)

      Sets the default value that will be presented in the number field.
      Parameters:
        `defaultNumericValue` - the default value that will be presented in the number field.

    - #### getDefaultNumericValue

          public java.lang.Double getDefaultNumericValue()

      Returns the initial value of the object, which is set when the object is reset.
      Returns:
        the initial value of the object, which is set when the object is reset.

    - #### setMin

          public void setMin(java.lang.Double min)

      Sets the minimum value that can be entered in the field.
      Parameters:
        `min` - the minimum value that can be entered in the field.

    - #### getMin

          public java.lang.Double getMin()

      Returns the minimum value that can be entered in the field.
      Returns:
        the minimum value that can be entered in the field.

    - #### setMax

          public void setMax(java.lang.Double max)

      Sets the maximum value that can be entered in the field.
      Parameters:
        `max` - the maximum value that can be entered in the field.

    - #### getMax

          public java.lang.Double getMax()

      Returns the maximum value that can be entered in the field.
      Returns:
        the maximum value that can be entered in the field.