Package com.hp.lft.sdk.java
Interface List
- All Superinterfaces:
- Clickable,- DoubleClickable,- EnabledProvider,- LocationInfoProvider,- SupportsNativeObject,- TestObject,- TestObjectDescriber,- UiObjectBase,- VisibleProvider,- WaitUntilEnabledProvider,- WaitUntilVisibleProvider
A Java list box with single or multiple selection.
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivateItem(int itemIndex) Activates an item in the list.voidactivateItem(ListItem item) Activates an item in the list.voidactivateItem(String item) Activates an item in the list.voiddeselect(int... itemIndices) Deselects items from the list.voidDeselects items from the list.voidDeselects items from the list.voiddeselectRange(int indexFrom, int indexTo) Deselects list items between (and including) the two specified items.voidextendSelect(int... itemIndices) Selects additional items from the multi-selection list, by index.voidextendSelect(ListItem... items) Selects additional items from the multi-selection list, by ListItem items.voidextendSelect(String... items) Selects additional items from the multi-selection list, by name.Returns the item with the specified text.getItems()Returns the list of items in the list object.Returns the list of items that are selected in the list object.voidselect(int... itemIndices) Selects multiple items by indices.voidSelects multiple items by string values.voidSelects multiple items by string values.voidselectRange(int indexFrom, int indexTo) Selects list items between (and including) the two specified items.voidselectRange(ListItem itemFrom, ListItem itemTo) Selects list items between (and including) the two specified items.voidselectRange(String itemNameFirst, String itemNameLast) Selects list items between (and including) the two specified items.Methods inherited from interface com.hp.lft.sdk.DoubleClickabledoubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProviderisEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.java.UiObjectBasecreateObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.VisibleProviderisVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProviderwaitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProviderwaitUntilVisible, waitUntilVisible
- 
Method Details- 
activateItemActivates an item in the list.- Parameters:
- item- the item to activate.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
activateItemActivates an item in the list.- Parameters:
- item- the name of the item to activate.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
activateItemActivates an item in the list.- Parameters:
- itemIndex- the 0-based index of the item to activate.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
deselectDeselects items from the list.- Parameters:
- items- the items to deselect.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
deselectDeselects items from the list.- Parameters:
- items- the texts of the items to deselect.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
deselectDeselects items from the list.- Parameters:
- itemIndices- 0-based indices of the items to deselect.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
extendSelectSelects additional items from the multi-selection list, by name.- Parameters:
- items- the names of the items to add to the selection.
- Throws:
- GeneralLeanFtException- if an error occurs during execution.
 
- 
extendSelectSelects additional items from the multi-selection list, by index.- Parameters:
- itemIndices- the indices of the items to add to the selection.
- Throws:
- GeneralLeanFtException- if an error occurs during execution.
 
- 
extendSelectSelects additional items from the multi-selection list, by ListItem items.- Parameters:
- items- the items to add to the selection.
- Throws:
- GeneralLeanFtException- if an error occurs during execution.
 
- 
selectSelects multiple items by string values.- Parameters:
- items- string values of the items to select.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectSelects multiple items by string values.- Parameters:
- items- string values of the items to select.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectSelects multiple items by indices.- Parameters:
- itemIndices- the 0-based indices of the items to select.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectRangeSelects list items between (and including) the two specified items.- Parameters:
- indexFrom- 0-based index of the first item.
- indexTo- 0-based index of the last item.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectRangeSelects list items between (and including) the two specified items.- Parameters:
- itemNameFirst- the name of the first item to select.
- itemNameLast- the name of the last item to select.
- Throws:
- GeneralLeanFtException- if an error occurs during execution.
 
- 
selectRangeSelects list items between (and including) the two specified items.- Parameters:
- itemFrom- the first item to select.
- itemTo- the last item to select.
- Throws:
- GeneralLeanFtException- if an error occurs during execution.
 
- 
deselectRangeDeselects list items between (and including) the two specified items.- Parameters:
- indexFrom- 0-based index of the first item.
- indexTo- 0-based index of the last item.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getItemsReturns the list of items in the list object.- Returns:
- the texts of the items.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getSelectedItemsReturns the list of items that are selected in the list object.- Returns:
- the texts of the selected items.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getItemReturns the item with the specified text.- Parameters:
- text- the text.
- Returns:
- the item with the specified text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-