Package com.hp.lft.sdk.web
Class ListBoxDescription.Init<T extends ListBoxDescription.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.ListBoxDescription.Init<T>
- Direct Known Subclasses:
ListBoxDescription.Builder
,ListBoxDescription.Init
- Enclosing class:
- ListBoxDescription
protected abstract static class ListBoxDescription.Init<T extends ListBoxDescription.Init<T>>
extends FormFieldDescription.Init<T>
Helper class for ListBoxDescription.Builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the built description instance (builder pattern).defaultValue
(StringProperty defaultValue) Initializes the initial text value, which is set when the object is reset.defaultValue
(String defaultValue) Initializes the initial text value, which is set when the object is reset.Initializes whether the list box is enabled.firstItem
(StringProperty firstItem) Initializes the first item in the list of items in the list.Initializes the first item in the list of items in the list.Initializes the items in the list.itemsCount
(Integer count) Initializes the number of items in the list.Initializes whether the user can select multiple choices.selectedItems
(String[] selectedItems) Initializes the selected items in the list.value
(StringProperty value) Initializes the current text in the edit field.Initializes the current text in the edit field.visibleItemsCount
(Integer visibleItemsCount) Initializes the number of items that are displayed in the list box.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 ListBoxDescription.Init<T>>
- Returns:
- The built description instance (builder pattern).
-
value
Initializes the current text in the edit field.- Parameters:
value
- the current text in the edit field.- Returns:
- the description instance with the update state (builder pattern).
-
value
Initializes the current text in the edit field.- Parameters:
value
- a StringProperty (or RegExpProperty) representing the current text in the edit field.- Returns:
- the description instance with the update state (builder pattern).
-
defaultValue
Initializes the initial text value, which is set when the object is reset.- Parameters:
defaultValue
- the initial text value, which is set when the object is reset.- Returns:
- the description instance with the update state (builder pattern).
-
defaultValue
Initializes the initial text value, which is set when the object is reset.- Parameters:
defaultValue
- a StringProperty (or RegExpProperty) representing the initial text value, which is set when the object is reset.- Returns:
- the description instance with the update state (builder pattern).
-
enabled
Initializes whether the list box is enabled.- Parameters:
isEnabled
- true if the list box is enabled.- Returns:
- the description instance with the update state (builder pattern).
-
multiple
Initializes whether the user can select multiple choices.- Parameters:
isMultiple
- true if the user can select multiple choices.- Returns:
- the description instance with the update state (builder pattern).
-
visibleItemsCount
Initializes the number of items that are displayed in the list box.- Parameters:
visibleItemsCount
- the number of items that are displayed in the list box.- Returns:
- the description instance with the update state (builder pattern).
-
items
Initializes the items in the list.- Parameters:
items
- the items in the list.- Returns:
- the description instance with the update state (builder pattern).
-
selectedItems
Initializes the selected items in the list.- Parameters:
selectedItems
- the selected items in the list.- Returns:
- the description instance with the update state (builder pattern).
-
itemsCount
Initializes the number of items in the list.- Parameters:
count
- the number of items in the list.- Returns:
- the description instance with the update state (builder pattern).
-
firstItem
Initializes the first item in the list of items in the list.- Parameters:
firstItem
- the first item in the list of items in the list.- Returns:
- the description instance with the update state (builder pattern).
-
firstItem
Initializes the first item in the list of items in the list.- Parameters:
firstItem
- a StringProperty (or RegExpProperty) representing the first item in the list of items in the list.- Returns:
- the description instance with the update state (builder pattern).
-