Package com.hp.lft.sdk.web
Class EditFieldDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
- All Implemented Interfaces:
CloneableObject,Description,com.hp.lft.sdk.internal.DescriptionWithVri,Cloneable
- Direct Known Subclasses:
EditFieldDescription,NumericFieldDescription
The description of the base interface for Web edit fields, such as, edit, number, and file fields.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class can be used to construct an instance of the EditFieldDescription class using the builder pattern.protected static classEditFieldDescription.Init<T extends EditFieldDescription.Init<T>>Helper class for EditFieldDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties -
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the EditFieldDescription class.protectedInitializes a new instance of the EditFieldDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the default value that will be displayed in the edit field.Returns the maximum number of characters that can be entered in the input field.Returns the input pattern, for example, a phone number.Returns the number of rows for multi-line objects.voidsetDefaultValue(StringProperty defaultValue) Sets the default value that will be presented in the edit field.voidsetDefaultValue(String defaultValue) Sets the default value that will be presented in the edit field.voidsetMaxLength(Integer maxLength) Sets the maximum number of characters that can be entered in the input field.voidsetPattern(StringProperty pattern) Sets the input pattern, for example, a phone number.voidsetPattern(String pattern) Sets the input pattern, for example, a phone number.voidsetRowsCount(Integer rowsCount) Sets the number of rows for multi-line objects.Methods 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
-
EditFieldDescription
public EditFieldDescription()Initializes a new instance of the EditFieldDescription class. -
EditFieldDescription
Initializes a new instance of the EditFieldDescription class using the Builder pattern.- Parameters:
init- the Builder pattern.
-
-
Method Details
-
setDefaultValue
Sets the default value that will be presented in the edit field.- Parameters:
defaultValue- a StringProperty (or RegExpProperty) representing the default value that will be presented in the edit field.
-
setDefaultValue
Sets the default value that will be presented in the edit field.- Parameters:
defaultValue- the default value that will be presented in the edit field.
-
getDefaultValue
Returns the default value that will be displayed in the edit field.- Returns:
- the default value that will be displayed in the edit field.
-
setMaxLength
Sets the maximum number of characters that can be entered in the input field.- Parameters:
maxLength- the maximum number of characters that can be entered in the input field.
-
getMaxLength
Returns the maximum number of characters that can be entered in the input field.- Returns:
- the maximum number of characters that can be entered in the input field.
-
setPattern
Sets the input pattern, for example, a phone number.- Parameters:
pattern- a StringProperty (or RegExpProperty) representing the pattern of the input.
-
setPattern
Sets the input pattern, for example, a phone number.- Parameters:
pattern- the pattern of the input.
-
getPattern
Returns the input pattern, for example, a phone number.- Returns:
- the input pattern.
-
setRowsCount
Sets the number of rows for multi-line objects.- Parameters:
rowsCount- the number of rows for multi-line objects.
-
getRowsCount
Returns the number of rows for multi-line objects.- Returns:
- the number of rows for multi-line objects.
-