|
||||||||||
| 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<CCombo>
org.eclipse.swtbot.swt.finder.widgets.SWTBotCCombo
public class SWTBotCCombo
This represents a CCombo widget.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
|---|
description, display, log, widget |
| Constructor Summary | |
|---|---|
SWTBotCCombo(CCombo w)
Constructs an instance of this with the given widget. |
|
SWTBotCCombo(CCombo w,
SelfDescribing description)
Constructs an instance of this with the given widget. |
|
| Method Summary | |
|---|---|
int |
itemCount()
Gets the number of items in the combo box. |
String[] |
items()
Returns an array of Strings which are the items in the receiver's list. |
String |
selection()
Gets the current selection in the combo. |
int |
selectionIndex()
Gets the current selection 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 in the cCombo box. |
int |
textLimit()
Returns the maximum number of characters that the receiver's text field is capable of holding. |
| 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 SWTBotCCombo(CCombo w)
throws WidgetNotFoundException
w - the widget.
WidgetNotFoundException - if the widget is null or widget has been disposed.
public SWTBotCCombo(CCombo 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 void setText(String text)
text - the text to set.public int textLimit()
setTextLimit(), it will be the constant Combo.LIMIT.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||