|
||||||||||
| 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<Tree>
org.eclipse.swtbot.swt.finder.widgets.SWTBotTree
public class SWTBotTree
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
|---|
description, display, log, widget |
| Constructor Summary | |
|---|---|
SWTBotTree(Tree tree)
Constructs an instance of this object with the given tree. |
|
SWTBotTree(Tree tree,
SelfDescribing description)
Constructs an instance of this object with the given tree. |
|
| Method Summary | |
|---|---|
String |
cell(int row,
int column)
Gets the cell data for the given row/column index. |
String |
cell(int row,
String columnName)
Gets the cell data for the given row/column information. |
SWTBotTreeItem |
collapseNode(String nodeText)
Collapses the node matching the node information. |
int |
columnCount()
Gets the column count of this tree. |
List<String> |
columns()
Gets the columns of this tree. |
SWTBotTreeItem |
expandNode(String... nodes)
Attempts to expand all nodes along the path specified by the node array parameter. |
SWTBotTreeItem |
expandNode(String nodeText,
boolean recursive)
Expands the nodes as if the plus sign was clicked. |
SWTBotTreeItem[] |
getAllItems()
Gets all the items in the tree. |
SWTBotTreeItem |
getTreeItem(String nodeText)
Gets the tree item matching the given name. |
boolean |
hasItems()
Gets if this tree has items within it. |
protected void |
notifySelect()
Notifies the tree widget about selection changes |
int |
rowCount()
Gets the number of rows in the tree. |
SWTBotTree |
select(int... indices)
Select the indexes provided. |
SWTBotTree |
select(String... items)
Selects the items matching the array list. |
SWTBotTree |
select(SWTBotTreeItem... items)
Selects the items in the array. |
TableCollection |
selection()
Gets the table collection representing the selection. |
int |
selectionCount()
Gets the current selection count. |
SWTBotTree |
unselect()
Unselects the selection in the tree. |
int |
visibleRowCount()
Gets the visible row count. |
| 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 SWTBotTree(Tree tree,
SelfDescribing description)
throws WidgetNotFoundException
tree - 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.
public SWTBotTree(Tree tree)
throws WidgetNotFoundException
tree - the widget.
WidgetNotFoundException - if the widget is null or widget has been disposed.| Method Detail |
|---|
public int rowCount()
public int columnCount()
public List<String> columns()
public String cell(int row,
int column)
row - the row index.column - the column index.
public String cell(int row,
String columnName)
row - the row index.columnName - the column name.
public int selectionCount()
public TableCollection selection()
public SWTBotTree select(String... items)
items - the items to select.
public SWTBotTree select(SWTBotTreeItem... items)
items - the items to select.
public SWTBotTree unselect()
public SWTBotTree select(int... indices)
indices - the indices to select.
protected void notifySelect()
public SWTBotTreeItem expandNode(String... nodes)
throws WidgetNotFoundException
nodes - node path to expand
WidgetNotFoundException - if any of the nodes on the path do not exist
public SWTBotTreeItem collapseNode(String nodeText)
throws WidgetNotFoundException
nodeText - the text on the node.
WidgetNotFoundException - if the node is not found.public int visibleRowCount()
public SWTBotTreeItem expandNode(String nodeText,
boolean recursive)
throws WidgetNotFoundException
nodeText - the node to be expanded.recursive - if the expansion should be recursive.
WidgetNotFoundException - if the node is not found.
public SWTBotTreeItem getTreeItem(String nodeText)
throws WidgetNotFoundException
nodeText - the text on the node.
WidgetNotFoundException - if the node was not found.public SWTBotTreeItem[] getAllItems()
public boolean hasItems()
true if the tree has any items, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||