|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<TrayItem> org.eclipse.swtbot.swt.finder.widgets.SWTBotTrayItem
public class SWTBotTrayItem
Represents a tray item.
Field Summary |
---|
Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
description, display, log, widget |
Constructor Summary | |
---|---|
SWTBotTrayItem(TrayItem widget)
Constructs a new instance with the given widget. |
Method Summary | |
---|---|
SWTBotMenu |
contextMenu(String label)
Gets the context menu matching the text. |
SWTBotMenu |
menu(String label)
Convenience API for contextMenu(String) |
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
absoluteLocation, assertEnabled, asyncExec, backgroundColor, click, click, clickXY, 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 SWTBotTrayItem(TrayItem widget) throws WidgetNotFoundException
widget
- the tray item.
WidgetNotFoundException
- if the widget is null
or widget has been disposed.Method Detail |
---|
public SWTBotMenu contextMenu(String label) throws WidgetNotFoundException
AbstractSWTBot
contextMenu
in class AbstractSWTBot<TrayItem>
label
- the text on the context menu.
WidgetNotFoundException
- if the widget is not found.public SWTBotMenu menu(String label)
contextMenu(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |