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 classThis class can be used to construct an instance of the NumericFieldDescription class using the builder pattern.protected static classHelper 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.protectedInitializes 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.voidsetDefaultNumericValue(Double defaultNumericValue) Sets the default value that will be presented in the number field.voidSets the maximum value that can be entered in the field.voidSets the minimum value that can be entered in the field.voidsetNumericValue(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, setRowsCountMethods inherited from class com.hp.lft.sdk.web.EditFieldBaseDescription
getMaxCharsInLine, getPlaceholder, getValue, isEnabled, isReadOnly, isRequired, setEnabled, setMaxCharsInLine, setPlaceholder, setPlaceholder, setReadOnly, setRequired, setValue, setValueMethods inherited from class com.hp.lft.sdk.web.FormFieldDescription
getType, setType, setTypeMethods inherited from class com.hp.lft.sdk.web.WebElementDescription
getAccessibilityName, getCSSSelector, getRole, getXPath, setAccessibilityName, setAccessibilityName, setCSSSelector, setCSSSelector, setRole, setRole, setXPath, setXPathMethods 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, setVisibleMethods inherited from class com.hp.lft.sdk.DescriptionBase
getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.
-