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 classThis class can be used to construct an instance of the ListBoxDescription class using the builder pattern.protected static classListBoxDescription.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.protectedInitializes 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.voidsetDefaultValue(StringProperty defaultValue) Sets the initial text value, which is set when the object is reset.voidsetDefaultValue(String defaultValue) Sets the initial text value, which is set when the object is reset.voidsetEnabled(Boolean isEnabled) Sets whether the list box is enabled.voidsetFirstItem(StringProperty firstItem) Sets the first item in the list of items in the list.voidsetFirstItem(String firstItem) Sets the first item in the list of items in the list.voidSets the items in the list.voidsetItemsCount(Integer count) Sets the number of items in the list.voidsetMultiple(Boolean isMultiple) Sets whether the user can select multiple items.voidsetSelectedItems(String[] items) Sets the selected items in the list.voidsetValue(StringProperty value) Sets the current text in the edit field.voidSets the current text in the edit field.voidsetVisibleItemsCount(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, 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
-
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.
-