|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<T>
org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl<Combo>
org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo
public class SWTBotCombo
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
|---|
description, display, log, widget |
| Constructor Summary | |
|---|---|
SWTBotCombo(Combo w)
Constructs an instance of this with the given combo box. |
|
SWTBotCombo(Combo w,
SelfDescribing description)
Constructs an instance of this with the given combo box. |
|
| Method Summary | |
|---|---|
int |
itemCount()
Gets the item count in the combo box. |
String[] |
items()
Returns an array of Strings which are the items in the receiver's list. |
String |
selection()
Attempts to select the current item. |
int |
selectionIndex()
Sets the selection to the given index. |
void |
setSelection(int index)
Sets the selection to the specified index. |
void |
setSelection(String text)
Set the selection to the specified text. |
void |
setText(String text)
Sets the text of the combo box. |
SWTBotCombo |
typeText(String text)
Types the string in the combo box. |
SWTBotCombo |
typeText(String text,
int interval)
Types the string in the combo box. |
| 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 SWTBotCombo(Combo w)
throws WidgetNotFoundException
w - the widget.
WidgetNotFoundException - if the widget is null or widget has been disposed.
public SWTBotCombo(Combo w,
SelfDescribing description)
throws WidgetNotFoundException
w - the widget.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 SWTBotCombo typeText(String text)
text - the text to be typed.
public SWTBotCombo typeText(String text,
int interval)
text - the text to be typed.interval - the interval between consecutive key strokes.
public void setSelection(String text)
text - the text to set into the combo.public String selection()
public int selectionIndex()
public void setSelection(int index)
index - the zero based index.public int itemCount()
public String[] items()
Strings which are the items in the receiver's list.
public void setText(String text)
text - the text to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||