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 classHelper 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
ConstructorsModifierConstructorDescriptionprotectedprotected -
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.voidsetEnabled(Boolean isEnabled) Sets whether the check box is enabled.voidsetMaxCharsInLine(Integer maxCharsInLine) Sets the number of characters that will be presented in each row.voidsetPlaceholder(StringProperty placeholder) Sets the hint text that is displayed in the edit box until a value is entered into it.voidsetPlaceholder(String placeholder) Sets the hint text that is displayed in the edit box until a value is entered into it.voidsetReadOnly(Boolean readOnly) Sets whether or not the control is read only.voidsetRequired(Boolean required) Sets whether or not the field is mandatory in the form.voidsetValue(StringProperty value) Sets the text in the field.voidSets the text in the field.Methods 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
-
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.
-