Table of Contents

Interface IList

Namespace
HP.LFT.SDK.Java
Assembly
HP.LFT.SDK.dll

A Java list box with single or multiple selection.

public interface IList : IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

Items

The collection of items in the list.

ReadOnlyCollection<IListItem> Items { get; }

Property Value

ReadOnlyCollection<IListItem>

SelectedItems

The collection of items that are selected in the list.

ReadOnlyCollection<IListItem> SelectedItems { get; }

Property Value

ReadOnlyCollection<IListItem>

Methods

ActivateItem(IListItem)

Activates an item in the list.

void ActivateItem(IListItem item)

Parameters

item IListItem

The item to activate.

ActivateItem(int)

Activates an item in the list.

void ActivateItem(int itemIndex)

Parameters

itemIndex int

The index of the item to activate.

ActivateItem(string)

Activates an item in the list.

void ActivateItem(string item)

Parameters

item string

The name of the item to activate .

Deselect(params IListItem[])

Deselects items in the list.

void Deselect(params IListItem[] items)

Parameters

items IListItem[]

The items to deselect.

Deselect(params string[])

Deselects items from the list.

void Deselect(params string[] items)

Parameters

items string[]

The texts of the items to deselect.

Deselect(params uint[])

Deselects items in the list.

void Deselect(params uint[] itemIndices)

Parameters

itemIndices uint[]

0-based indices of the items to deselect.

DeselectRange(int, int)

Deselects list items between (and including) the two specified items.

void DeselectRange(int indexFrom, int indexTo)

Parameters

indexFrom int

0-based index of the first item.

indexTo int

0-based index of the last item .

ExtendSelect(params IListItem[])

Selects additional items from the multi-selection list, by ListItems collection.

void ExtendSelect(params IListItem[] items)

Parameters

items IListItem[]

The items to add to the selection.

ExtendSelect(params string[])

Selects additional items from the multi-selection list, by name.

void ExtendSelect(params string[] itemNames)

Parameters

itemNames string[]

The item names to add to the selection.

ExtendSelect(params uint[])

Selects additional items from the multi-selection list, by indices.

void ExtendSelect(params uint[] itemIndices)

Parameters

itemIndices uint[]

The 0-based item indices to add to the selection.

GetItem(string)

Returns the item with the specified text.

IListItem GetItem(string text)

Parameters

text string

The text of the item.

Returns

IListItem

Select(params IListItem[])

Selects multiple items by ListItems collection.

void Select(params IListItem[] items)

Parameters

items IListItem[]

The items to select.

Select(params string[])

Selects multiple items by string values.

void Select(params string[] items)

Parameters

items string[]

The texts of the items to select.

Select(params uint[])

Selects multiple items by indices.

void Select(params uint[] itemIndices)

Parameters

itemIndices uint[]

0-based indices of the items to select.

SelectRange(IListItem, IListItem)

Selects list items between (and including) the two specified ListItem items.

void SelectRange(IListItem itemFrom, IListItem itemTo)

Parameters

itemFrom IListItem

The first ListItem to select.

itemTo IListItem

The last ListItem to select.

SelectRange(int, int)

Selects list items between (and including) the two specified items.

void SelectRange(int indexFrom, int indexTo)

Parameters

indexFrom int

0-based index of the first item.

indexTo int

0-based index of the last item.

SelectRange(string, string)

Selects list items between (and including) the two specified items.

void SelectRange(string itemNameFirst, string itemNameLast)

Parameters

itemNameFirst string

The name of the first item to select.

itemNameLast string

The name of the last item to select.