|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<T> org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl<List> org.eclipse.swtbot.swt.finder.widgets.SWTBotList
public class SWTBotList
Field Summary |
---|
Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
description, display, log, widget |
Constructor Summary | |
---|---|
SWTBotList(List list)
Constructs an isntance of this with the given list widget. |
|
SWTBotList(List list,
SelfDescribing description)
Constructs an isntance of this with the given list widget. |
Method Summary | |
---|---|
String[] |
getItems()
Gets the array of Strings from the List |
int |
indexOf(String item)
Gets the index of the given item. |
String |
itemAt(int index)
Gets the item at the given index. |
int |
itemCount()
Gets the item count in the list |
protected void |
notifySelect()
Notifies of a selection. |
void |
select(int... indices)
Selects the indexes provided. |
void |
select(int index)
Selects the given index. |
void |
select(String... items)
Sets the selection to the given list of items. |
void |
select(String item)
Selects the item matching the given text. |
String[] |
selection()
Gets the arrray of selected items. |
int |
selectionCount()
Gets the selection count. |
void |
unselect()
Unselects everything. |
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl |
---|
absoluteLocation, click, moveMouseToWidget, rightClick |
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
assertEnabled, asyncExec, backgroundColor, click, click, clickXY, contextMenu, contextMenu, createEvent, createMouseEvent, createSelectionEvent, doubleClickXY, foregroundColor, getId, getText, getToolTipText, hasStyle, isActive, isEnabled, isEnabledInternal, isVisible, keyboard, notify, notify, notify, pressShortcut, pressShortcut, pressShortcut, rightClick, rightClick, setFocus, sleep, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, toString, traverse, waitForEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SWTBotList(List list) throws WidgetNotFoundException
list
- the list.
WidgetNotFoundException
- if the widget is null
or widget has been disposed.public SWTBotList(List list, SelfDescribing description) throws WidgetNotFoundException
list
- the list.description
- the description of the widget, this will be reported by AbstractSWTBot.toString()
WidgetNotFoundException
- if the widget is null
or widget has been disposed.Method Detail |
---|
public void select(String item)
item
- the item to select in the list.public void select(int index)
index
- the selection index.public int itemCount()
public int selectionCount()
public String[] selection()
public void select(int... indices)
indices
- the indices to select in the list.public void select(String... items)
items
- the items to select in the list.protected void notifySelect()
public void unselect()
public int indexOf(String item)
item
- the search item.
public String itemAt(int index)
index
- the zero based index.
public String[] getItems()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |