Interface IList
A Java list box with single or multiple selection.
Inherited Members
Namespace: HP.LFT.SDK.Java
Assembly: HP.LFT.SDK.dll
Syntax
public interface IList : IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
Properties
Items
The collection of items in the list.
Declaration
ReadOnlyCollection<IListItem> Items { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<IListItem> |
SelectedItems
The collection of items that are selected in the list.
Declaration
ReadOnlyCollection<IListItem> SelectedItems { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<IListItem> |
Methods
ActivateItem(IListItem)
Activates an item in the list.
Declaration
void ActivateItem(IListItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| IListItem | item | The item to activate. |
ActivateItem(int)
Activates an item in the list.
Declaration
void ActivateItem(int itemIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | itemIndex | The index of the item to activate. |
ActivateItem(string)
Activates an item in the list.
Declaration
void ActivateItem(string item)
Parameters
| Type | Name | Description |
|---|---|---|
| string | item | The name of the item to activate . |
Deselect(params IListItem[])
Deselects items in the list.
Declaration
void Deselect(params IListItem[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| IListItem[] | items | The items to deselect. |
Deselect(params string[])
Deselects items from the list.
Declaration
void Deselect(params string[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | items | The texts of the items to deselect. |
Deselect(params uint[])
Deselects items in the list.
Declaration
void Deselect(params uint[] itemIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| uint[] | itemIndices | 0-based indices of the items to deselect. |
DeselectRange(int, int)
Deselects list items between (and including) the two specified items.
Declaration
void DeselectRange(int indexFrom, int indexTo)
Parameters
| Type | Name | Description |
|---|---|---|
| int | indexFrom | 0-based index of the first item. |
| int | indexTo | 0-based index of the last item . |
ExtendSelect(params IListItem[])
Selects additional items from the multi-selection list, by ListItems collection.
Declaration
void ExtendSelect(params IListItem[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| IListItem[] | items | The items to add to the selection. |
ExtendSelect(params string[])
Selects additional items from the multi-selection list, by name.
Declaration
void ExtendSelect(params string[] itemNames)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | itemNames | The item names to add to the selection. |
ExtendSelect(params uint[])
Selects additional items from the multi-selection list, by indices.
Declaration
void ExtendSelect(params uint[] itemIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| uint[] | itemIndices | The 0-based item indices to add to the selection. |
GetItem(string)
Returns the item with the specified text.
Declaration
IListItem GetItem(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text of the item. |
Returns
| Type | Description |
|---|---|
| IListItem |
Select(params IListItem[])
Selects multiple items by ListItems collection.
Declaration
void Select(params IListItem[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| IListItem[] | items | The items to select. |
Select(params string[])
Selects multiple items by string values.
Declaration
void Select(params string[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | items | The texts of the items to select. |
Select(params uint[])
Selects multiple items by indices.
Declaration
void Select(params uint[] itemIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| uint[] | itemIndices | 0-based indices of the items to select. |
SelectRange(IListItem, IListItem)
Selects list items between (and including) the two specified ListItem items.
Declaration
void SelectRange(IListItem itemFrom, IListItem itemTo)
Parameters
| Type | Name | Description |
|---|---|---|
| IListItem | itemFrom | The first ListItem to select. |
| IListItem | itemTo | The last ListItem to select. |
SelectRange(int, int)
Selects list items between (and including) the two specified items.
Declaration
void SelectRange(int indexFrom, int indexTo)
Parameters
| Type | Name | Description |
|---|---|---|
| int | indexFrom | 0-based index of the first item. |
| int | indexTo | 0-based index of the last item. |
SelectRange(string, string)
Selects list items between (and including) the two specified items.
Declaration
void SelectRange(string itemNameFirst, string itemNameLast)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemNameFirst | The name of the first item to select. |
| string | itemNameLast | The name of the last item to select. |