|
||||||||||
| 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<ExpandBar>
org.eclipse.swtbot.swt.finder.widgets.SWTBotExpandBar
public class SWTBotExpandBar
Represents an ExpandBar.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
|---|
description, display, log, widget |
| Constructor Summary | |
|---|---|
SWTBotExpandBar(ExpandBar w)
Constructs a new instance with the given widget. |
|
SWTBotExpandBar(ExpandBar w,
SelfDescribing description)
Constructs a new instance with the given widget. |
|
| Method Summary | |
|---|---|
int |
collapsedItemCount()
|
SWTBotExpandItem |
collapseItem(Matcher<Widget> matcher)
Collapses the ExpandItem and returns it. |
SWTBotExpandItem |
collapseItem(String itemText)
Collapses the ExpandItem and returns it. |
int |
expandedItemCount()
|
SWTBotExpandItem |
expandItem(Matcher<Widget> matcher)
Expands the ExpandItem and returns it. |
SWTBotExpandItem |
expandItem(String itemText)
Expands the ExpandItem and returns it. |
List<SWTBotExpandItem> |
getAllItems()
|
SWTBotExpandItem |
getExpandItem(Matcher<Widget> matcher)
Return the ExpandItem that matches the specified matcher. |
boolean |
hasItems()
|
int |
itemCount()
|
| Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
|---|
absoluteLocation, 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 SWTBotExpandBar(ExpandBar w)
w - the widget.
WidgetNotFoundException - if the widget is null or widget has been disposed.
public SWTBotExpandBar(ExpandBar w,
SelfDescribing description)
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 int itemCount()
ExpandItems in the widget.public int expandedItemCount()
itemCount(),
collapsedItemCount()public int collapsedItemCount()
itemCount(),
expandedItemCount()public SWTBotExpandItem expandItem(String itemText)
ExpandItem and returns it.
itemText - the text on the item.
SWTBotExpandItem with the specified text.public SWTBotExpandItem expandItem(Matcher<Widget> matcher)
ExpandItem and returns it.
matcher - the matcher.
SWTBotExpandItem that matches the matcherpublic SWTBotExpandItem collapseItem(String itemText)
ExpandItem and returns it.
itemText - the text on the item.
SWTBotExpandItem with the specified text.public SWTBotExpandItem collapseItem(Matcher<Widget> matcher)
ExpandItem and returns it.
matcher - the matcher.
SWTBotExpandItem that matches the matcher.public SWTBotExpandItem getExpandItem(Matcher<Widget> matcher)
ExpandItem that matches the specified matcher.
matcher - the matcher.
SWTBotExpandItem with the specified text.public List<SWTBotExpandItem> getAllItems()
SWTBotExpandItem or the empty list if there was a problem with any of the items.public boolean hasItems()
true if the expandBar has any items, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||