Package com.hp.lft.sdk.web
Class EditFieldBaseDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.web.WebBaseDescription
com.hp.lft.sdk.web.WebElementDescription
com.hp.lft.sdk.web.FormFieldDescription
com.hp.lft.sdk.web.EditFieldBaseDescription
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
- Direct Known Subclasses:
EditFieldDescription
,FileFieldDescription
A base class description for all edit fields (Edit, Number and File).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Helper class for derived Builder classes.Nested classes/interfaces inherited from class com.hp.lft.sdk.web.WebElementDescription
WebElementDescription.Builder
-
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionReturns the number of characters that will be presented in each row.Returns the hint text that is displayed in the edit box until a value is entered into it.getValue()
Returns the current text in the field.Indicates whether the check box is enabled.Returns true if the object is read-only.Returns true if the field is mandatory.void
setEnabled
(Boolean isEnabled) Sets whether the check box is enabled.void
setMaxCharsInLine
(Integer maxCharsInLine) Sets the number of characters that will be presented in each row.void
setPlaceholder
(StringProperty placeholder) Sets the hint text that is displayed in the edit box until a value is entered into it.void
setPlaceholder
(String placeholder) Sets the hint text that is displayed in the edit box until a value is entered into it.void
setReadOnly
(Boolean readOnly) Sets whether or not the control is read only.void
setRequired
(Boolean required) Sets whether or not the field is mandatory in the form.void
setValue
(StringProperty value) Sets the text in the field.void
Sets the text in the field.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
-
EditFieldBaseDescription
-
EditFieldBaseDescription
protected EditFieldBaseDescription()
-
-
Method Details
-
setValue
Sets the text in the field.- Parameters:
value
- a StringProperty (or RegExpProperty) representing the text in the field.
-
setValue
Sets the text in the field.- Parameters:
value
- the text in the field.
-
getValue
Returns the current text in the field.- Returns:
- the current text in the field.
-
setPlaceholder
Sets the hint text that is displayed in the edit box until a value is entered into it.- Parameters:
placeholder
- a StringProperty (or RegExpProperty) representing the hint text that is displayed in the edit box until a value is entered into it.
-
setPlaceholder
Sets the hint text that is displayed in the edit box until a value is entered into it.- Parameters:
placeholder
- the hint text that is displayed in the edit box until a value is entered into it.
-
getPlaceholder
Returns the hint text that is displayed in the edit box until a value is entered into it.- Returns:
- the hint text that is displayed in the edit box until a value is entered into it.
-
setReadOnly
Sets whether or not the control is read only.- Parameters:
readOnly
- whether or not the control is read only.
-
isReadOnly
Returns true if the object is read-only.- Returns:
- true if read-only.
-
setRequired
Sets whether or not the field is mandatory in the form.- Parameters:
required
- whether or not the field is mandatory in the form.
-
isRequired
Returns true if the field is mandatory.- Returns:
- True if the field is mandatory.
-
setMaxCharsInLine
Sets the number of characters that will be presented in each row.- Parameters:
maxCharsInLine
- the number of characters that will be presented in each row.
-
getMaxCharsInLine
Returns the number of characters that will be presented in each row.- Returns:
- the number of characters that will be presented in each row.
-
setEnabled
Sets whether the check box is enabled.- Parameters:
isEnabled
- true if enabled.
-
isEnabled
Indicates whether the check box is enabled.- Returns:
- true if enabled.
-