|
||||||||||
| 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<T>
public class AbstractSWTBotControl<T extends Control>
Helper to find SWT Controls and perform operations on them.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
|---|
description, display, log, widget |
| Constructor Summary | |
|---|---|
AbstractSWTBotControl(T w)
Constructs a new instance with the given widget. |
|
AbstractSWTBotControl(T w,
SelfDescribing description)
Constructs a new instance with the given widget. |
|
| Method Summary | |
|---|---|
protected Rectangle |
absoluteLocation()
Get the bounds of the Widget in relation to Display |
protected AbstractSWTBotControl<T> |
click(boolean post)
Click on the center of the widget. |
protected AbstractSWTBotControl<T> |
moveMouseToWidget()
Moves the cursor to the center of the widget |
protected AbstractSWTBotControl<T> |
rightClick(boolean post)
Right click on the center of the widget. |
| 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 AbstractSWTBotControl(T w)
throws WidgetNotFoundException
w - the widget.
WidgetNotFoundException - if the widget is null or widget has been disposed.
public AbstractSWTBotControl(T 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 |
|---|
protected Rectangle absoluteLocation()
absoluteLocation in class AbstractSWTBot<T extends Control>protected AbstractSWTBotControl<T> click(boolean post)
post - Whether or not Display.post(org.eclipse.swt.widgets.Event) should be used
protected AbstractSWTBotControl<T> rightClick(boolean post)
post - Whether or not Display.post(org.eclipse.swt.widgets.Event) should be used
protected AbstractSWTBotControl<T> moveMouseToWidget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||