Package com.hp.lft.sdk.web
Class NumericFieldDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
- Direct Known Subclasses:
SliderDescription
The description of a Web NumericField test object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class can be used to construct an instance of the NumericFieldDescription class using the builder pattern.protected static class
Helper class for NumericFieldDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the NumericFieldDescription class.protected
Initializes a new instance of the NumericFieldDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the initial value of the object, which is set when the object is reset.getMax()
Returns the maximum value that can be entered in the field.getMin()
Returns the minimum value that can be entered in the field.Returns the current value in the number field.void
setDefaultNumericValue
(Double defaultNumericValue) Sets the default value that will be presented in the number field.void
Sets the maximum value that can be entered in the field.void
Sets the minimum value that can be entered in the field.void
setNumericValue
(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, isEnabled, isReadOnly, isRequired, setEnabled, 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, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, 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 Details
-
NumericFieldDescription
public NumericFieldDescription()Initializes a new instance of the NumericFieldDescription class. -
NumericFieldDescription
Initializes a new instance of the NumericFieldDescription class using the Builder pattern.- Parameters:
init
- the Builder pattern.
-
-
Method Details
-
setNumericValue
Sets the current value in the number field.- Parameters:
numericValue
- the current value in the number field.
-
getNumericValue
Returns the current value in the number field.- Returns:
- the current value in the number field.
-
setDefaultNumericValue
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
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
Sets the minimum value that can be entered in the field.- Parameters:
min
- the minimum value that can be entered in the field.
-
getMin
Returns the minimum value that can be entered in the field.- Returns:
- the minimum value that can be entered in the field.
-
setMax
Sets the maximum value that can be entered in the field.- Parameters:
max
- the maximum value that can be entered in the field.
-
getMax
Returns the maximum value that can be entered in the field.- Returns:
- the maximum value that can be entered in the field.
-