|
||||||||||
| 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<Button>
org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox
public class SWTBotCheckBox
Represents a checkbox Button of type SWT.CHECK.
SWTBotButton,
SWTBotRadio,
SWTBotToggleButton| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
|---|
description, display, log, widget |
| Constructor Summary | |
|---|---|
SWTBotCheckBox(Button w)
Constructs an instance of this object with the given button (Checkbox) |
|
SWTBotCheckBox(Button w,
SelfDescribing description)
Constructs an instance of this object with the given button (Checkbox) |
|
| Method Summary | |
|---|---|
SWTBotCheckBox |
click()
Click on the checkbox, toggle it. |
void |
deselect()
Deselect the checkbox. |
boolean |
isChecked()
Gets if the checkbox button is checked. |
protected void |
notifyListeners()
notify listeners about checkbox state change. |
void |
select()
Select the checkbox. |
protected void |
toggle()
Toggle the checkbox. |
| 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, 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 SWTBotCheckBox(Button w)
throws WidgetNotFoundException
w - the widget.
WidgetNotFoundException - if the widget is null or widget has been disposed.
public SWTBotCheckBox(Button 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 SWTBotCheckBox click()
click in class AbstractSWTBot<Button>public void deselect()
public void select()
protected void toggle()
protected void notifyListeners()
public boolean isChecked()
true if the checkbox is checked. Otherwise false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||