Package com.hp.lft.sdk.web
Class ListBoxDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
- Direct Known Subclasses:
ListBoxDescription
The description of a Web ListBox test object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class can be used to construct an instance of the ListBoxDescription class using the builder pattern.protected static class
ListBoxDescription.Init<T extends ListBoxDescription.Init<T>>
Helper class for ListBoxDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the ListBoxDescription class.protected
Initializes a new instance of the ListBoxDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the initial text value, which is set when the object is reset.Returns the first item in the list of items in the list.String[]
getItems()
Returns the collection of items in the list.Returns the number of items in the list.String[]
Returns the collection of selected items in the list.getValue()
Returns the object's current text.Returns the number of items that are displayed in the list box.Indicates whether the list box is enabled.Indicates whether the user can select multiple items.void
setDefaultValue
(StringProperty defaultValue) Sets the initial text value, which is set when the object is reset.void
setDefaultValue
(String defaultValue) Sets the initial text value, which is set when the object is reset.void
setEnabled
(Boolean isEnabled) Sets whether the list box is enabled.void
setFirstItem
(StringProperty firstItem) Sets the first item in the list of items in the list.void
setFirstItem
(String firstItem) Sets the first item in the list of items in the list.void
Sets the items in the list.void
setItemsCount
(Integer count) Sets the number of items in the list.void
setMultiple
(Boolean isMultiple) Sets whether the user can select multiple items.void
setSelectedItems
(String[] items) Sets the selected items in the list.void
setValue
(StringProperty value) Sets the current text in the edit field.void
Sets the current text in the edit field.void
setVisibleItemsCount
(Integer visibleItemsCount) Sets the number of items that are displayed in the list box.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
-
ListBoxDescription
public ListBoxDescription()Initializes a new instance of the ListBoxDescription class. -
ListBoxDescription
Initializes a new instance of the ListBoxDescription class using the Builder pattern.- Parameters:
init
- the Builder pattern.
-
-
Method Details
-
setValue
Sets the current text in the edit field.- Parameters:
value
- a StringProperty (or RegExpProperty) representing the current text in the edit field.
-
setValue
Sets the current text in the edit field.- Parameters:
value
- the current text in the edit field.
-
getValue
Returns the object's current text.- Returns:
- the object's current text.
-
setDefaultValue
Sets 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.
-
setDefaultValue
Sets 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.
-
getDefaultValue
Returns the initial text value, which is set when the object is reset.- Returns:
- the initial text value, which is set when the object is reset.
-
setEnabled
Sets whether the list box is enabled.- Parameters:
isEnabled
- true if the list box is enabled.
-
isEnabled
Indicates whether the list box is enabled.- Returns:
- true if enabled.
-
setMultiple
Sets whether the user can select multiple items.- Parameters:
isMultiple
- true if the user can select multiple items.
-
isMultiple
Indicates whether the user can select multiple items.- Returns:
- true if the user can select multiple items.
-
setVisibleItemsCount
Sets the number of items that are displayed in the list box.- Parameters:
visibleItemsCount
- the number of items that are displayed in the list box.
-
getVisibleItemsCount
Returns the number of items that are displayed in the list box.- Returns:
- the number of items that are displayed in the list box.
-
setItems
Sets the items in the list.- Parameters:
items
- the items in the list.
-
getItems
Returns the collection of items in the list.Note: When weblist items are loaded dynamically, it is possible that only a partial list of the items will be returned.
- Returns:
- the collection of items in the list.
-
setSelectedItems
Sets the selected items in the list.- Parameters:
items
- the selected items in the list.
-
getSelectedItems
Returns the collection of selected items in the list.- Returns:
- the collection of selected items in the list.
-
setItemsCount
Sets the number of items in the list.- Parameters:
count
- the number of items in the list.
-
getItemsCount
Returns the number of items in the list.- Returns:
- the number of items in the list.
-
setFirstItem
Sets 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.
-
setFirstItem
Sets the first item in the list of items in the list.- Parameters:
firstItem
- the first item in the list of items in the list.
-
getFirstItem
Returns the first item in the list of items in the list.- Returns:
- the first item in the list of items in the list.
-