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 SummaryNested 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 SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsModifierConstructorDescriptionInitializes a new instance of the ListBoxDescription class.protectedInitializes a new instance of the ListBoxDescription class using the Builder pattern.
- 
Method SummaryModifier 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.FormFieldDescriptiongetType, setType, setTypeMethods inherited from class com.hp.lft.sdk.web.WebElementDescriptiongetAccessibilityName, getCSSSelector, getRole, getXPath, setAccessibilityName, setAccessibilityName, setCSSSelector, setCSSSelector, setRole, setRole, setXPath, setXPathMethods inherited from class com.hp.lft.sdk.web.WebBaseDescriptioncloneTo, 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.DescriptionBasegetIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescriptioncloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBasegetValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObjectclone
- 
Constructor Details- 
ListBoxDescriptionpublic ListBoxDescription()Initializes a new instance of the ListBoxDescription class.
- 
ListBoxDescriptionInitializes a new instance of the ListBoxDescription class using the Builder pattern.- Parameters:
- init- the Builder pattern.
 
 
- 
- 
Method Details- 
setValueSets the current text in the edit field.- Parameters:
- value- a StringProperty (or RegExpProperty) representing the current text in the edit field.
 
- 
setValueSets the current text in the edit field.- Parameters:
- value- the current text in the edit field.
 
- 
getValueReturns the object's current text.- Returns:
- the object's current text.
 
- 
setDefaultValueSets 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.
 
- 
setDefaultValueSets 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.
 
- 
getDefaultValueReturns 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.
 
- 
setEnabledSets whether the list box is enabled.- Parameters:
- isEnabled- true if the list box is enabled.
 
- 
isEnabledIndicates whether the list box is enabled.- Returns:
- true if enabled.
 
- 
setMultipleSets whether the user can select multiple items.- Parameters:
- isMultiple- true if the user can select multiple items.
 
- 
isMultipleIndicates whether the user can select multiple items.- Returns:
- true if the user can select multiple items.
 
- 
setVisibleItemsCountSets the number of items that are displayed in the list box.- Parameters:
- visibleItemsCount- the number of items that are displayed in the list box.
 
- 
getVisibleItemsCountReturns the number of items that are displayed in the list box.- Returns:
- the number of items that are displayed in the list box.
 
- 
setItemsSets the items in the list.- Parameters:
- items- the items in the list.
 
- 
getItemsReturns 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.
 
- 
setSelectedItemsSets the selected items in the list.- Parameters:
- items- the selected items in the list.
 
- 
getSelectedItemsReturns the collection of selected items in the list.- Returns:
- the collection of selected items in the list.
 
- 
setItemsCountSets the number of items in the list.- Parameters:
- count- the number of items in the list.
 
- 
getItemsCountReturns the number of items in the list.- Returns:
- the number of items in the list.
 
- 
setFirstItemSets 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.
 
- 
setFirstItemSets the first item in the list of items in the list.- Parameters:
- firstItem- the first item in the list of items in the list.
 
- 
getFirstItemReturns the first item in the list of items in the list.- Returns:
- the first item in the list of items in the list.
 
 
-