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 class
This class can be used to construct an instance of the EditFieldDescription class using the builder pattern.protected static class
EditFieldDescription.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.protected
Initializes 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.void
setDefaultValue
(StringProperty defaultValue) Sets the default value that will be presented in the edit field.void
setDefaultValue
(String defaultValue) Sets the default value that will be presented in the edit field.void
setMaxLength
(Integer maxLength) Sets the maximum number of characters that can be entered in the input field.void
setPattern
(StringProperty pattern) Sets the input pattern, for example, a phone number.void
setPattern
(String pattern) Sets the input pattern, for example, a phone number.void
setRowsCount
(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, 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
-
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.
-