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 SummaryNested 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 SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsModifierConstructorDescriptionInitializes a new instance of the EditFieldDescription class.protectedInitializes a new instance of the EditFieldDescription class using the Builder pattern.
- 
Method SummaryModifier 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.EditFieldBaseDescriptiongetMaxCharsInLine, getPlaceholder, getValue, isEnabled, isReadOnly, isRequired, setEnabled, setMaxCharsInLine, setPlaceholder, setPlaceholder, setReadOnly, setRequired, setValue, setValueMethods inherited from class com.hp.lft.sdk.web.FormFieldDescriptiongetType, setType, setTypeMethods inherited from class com.hp.lft.sdk.web.WebElementDescriptiongetAccessibilityName, getCSSSelector, getRole, getXPath, setAccessibilityName, setAccessibilityName, setCSSSelector, setCSSSelector, setRole, setRole, setXPath, setXPathMethods inherited from class com.hp.lft.sdk.web.WebBaseDescriptioncloneTo, 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.DescriptionBasegetIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescriptioncloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBasegetValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObjectclone
- 
Constructor Details- 
EditFieldDescriptionpublic EditFieldDescription()Initializes a new instance of the EditFieldDescription class.
- 
EditFieldDescriptionInitializes a new instance of the EditFieldDescription class using the Builder pattern.- Parameters:
- init- the Builder pattern.
 
 
- 
- 
Method Details- 
setDefaultValueSets 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.
 
- 
setDefaultValueSets the default value that will be presented in the edit field.- Parameters:
- defaultValue- the default value that will be presented in the edit field.
 
- 
getDefaultValueReturns the default value that will be displayed in the edit field.- Returns:
- the default value that will be displayed in the edit field.
 
- 
setMaxLengthSets 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.
 
- 
getMaxLengthReturns 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.
 
- 
setPatternSets the input pattern, for example, a phone number.- Parameters:
- pattern- a StringProperty (or RegExpProperty) representing the pattern of the input.
 
- 
setPatternSets the input pattern, for example, a phone number.- Parameters:
- pattern- the pattern of the input.
 
- 
getPatternReturns the input pattern, for example, a phone number.- Returns:
- the input pattern.
 
- 
setRowsCountSets the number of rows for multi-line objects.- Parameters:
- rowsCount- the number of rows for multi-line objects.
 
- 
getRowsCountReturns the number of rows for multi-line objects.- Returns:
- the number of rows for multi-line objects.
 
 
-