|
||||||||||
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<ExpandItem> org.eclipse.swtbot.swt.finder.widgets.SWTBotExpandItem
public class SWTBotExpandItem
Represents an ExpandItem
.
Field Summary |
---|
Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
description, display, log, widget |
Constructor Summary | |
---|---|
SWTBotExpandItem(ExpandItem w)
Constructs a new instance with the given widget. |
|
SWTBotExpandItem(ExpandItem w,
SelfDescribing description)
Constructs a new instance with the given widget. |
Method Summary | |
---|---|
SWTBotExpandItem |
collapse()
Collapse this item and return itself. |
protected Event |
createEvent()
Creates an event. |
SWTBotExpandItem |
expand()
Expand this item and return itself. |
boolean |
isCollapsed()
|
boolean |
isExpanded()
|
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
absoluteLocation, assertEnabled, asyncExec, backgroundColor, click, click, clickXY, contextMenu, contextMenu, 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 SWTBotExpandItem(ExpandItem w) throws WidgetNotFoundException
w
- the widget.
WidgetNotFoundException
- if the widget is null
or widget has been disposed.public SWTBotExpandItem(ExpandItem 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 SWTBotExpandItem expand()
public SWTBotExpandItem collapse()
public boolean isExpanded()
true
if the item is expanded, false
otherwise.isCollapsed()
public boolean isCollapsed()
true
if the item is collapsed, false
otherwise.isExpanded()
protected Event createEvent()
AbstractSWTBot
createEvent
in class AbstractSWTBot<ExpandItem>
AbstractSWTBot.widget
and AbstractSWTBot.display
. Subclasses may override to set other
event properties.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |