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