Package com.hp.lft.sdk.web
Class EditFieldDescription.Init<T extends EditFieldDescription.Init<T>>
java.lang.Object
com.hp.lft.sdk.DescriptionBase.Init<T>
com.hp.lft.sdk.web.WebBaseDescription.Init<T>
com.hp.lft.sdk.web.WebElementDescription.Init<T>
com.hp.lft.sdk.web.FormFieldDescription.Init<T>
com.hp.lft.sdk.web.EditFieldBaseDescription.Init<T>
com.hp.lft.sdk.web.EditFieldDescription.Init<T>
- Direct Known Subclasses:
EditFieldDescription.Builder
,EditFieldDescription.Init
,NumericFieldDescription.Init
- Enclosing class:
- EditFieldDescription
protected abstract static class EditFieldDescription.Init<T extends EditFieldDescription.Init<T>>
extends EditFieldBaseDescription.Init<T>
Helper class for EditFieldDescription.Builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the built description instance (builder pattern).defaultValue
(StringProperty defaultValue) Initializes the default value that will be presented in the edit field.defaultValue
(String defaultValue) Initializes the default value that will be presented in the edit field.Initializes the max number of characters that can be entered in the input field.pattern
(StringProperty pattern) Initializes the input pattern, for example, a phone number.Initializes the input pattern, for example, a phone number.Initializes the number of rows for multi-line objects.Methods inherited from class com.hp.lft.sdk.web.EditFieldBaseDescription.Init
enabled, maxCharsInLine, placeholder, placeholder, readOnly, required, value, value
Methods inherited from class com.hp.lft.sdk.web.FormFieldDescription.Init
type, type
Methods inherited from class com.hp.lft.sdk.web.WebElementDescription.Init
accessibilityName, accessibilityName, cssSelector, cssSelector, role, role, xpath, xpath
Methods inherited from class com.hp.lft.sdk.web.WebBaseDescription.Init
absoluteLocation, absoluteLocation, absoluteLocation, attribute, attribute, attributes, className, className, id, id, innerHTML, innerHTML, innerText, innerText, location, location, location, name, name, outerHTML, outerHTML, outerText, outerText, size, size, size, style, style, styles, tagName, tagName, title, title, visible
Methods inherited from class com.hp.lft.sdk.DescriptionBase.Init
index, objectProperties, self, vri, vri
-
Constructor Details
-
Init
protected Init()
-
-
Method Details
-
build
Description copied from class:DescriptionBase.Init
Returns the built description instance (builder pattern).- Overrides:
build
in classWebElementDescription.Init<T extends EditFieldDescription.Init<T>>
- Returns:
- The built description instance (builder pattern).
-
defaultValue
Initializes the default value that will be presented in the edit field.- Parameters:
defaultValue
- the default value that will be presented in the edit field.- Returns:
- the description instance with the update state (builder pattern).
-
defaultValue
Initializes 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.- Returns:
- the description instance with the update state (builder pattern).
-
maxLength
Initializes the max number of characters that can be entered in the input field.- Parameters:
maxLength
- the max number of characters that can be entered in the input field.- Returns:
- the description instance with the update state (builder pattern).
-
pattern
Initializes the input pattern, for example, a phone number.- Parameters:
pattern
- the pattern of the input.- Returns:
- the description instance with the update state (builder pattern).
-
pattern
Initializes the input pattern, for example, a phone number.- Parameters:
pattern
- a StringProperty (or RegExpProperty) representing the pattern of the input.- Returns:
- the description instance with the update state (builder pattern).
-
rowsCount
Initializes the number of rows for multi-line objects.- Parameters:
rowsCount
- the number of rows for multi-line objects.- Returns:
- the description instance with the update state (builder pattern).
-