|
||||||||||
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<TreeItem> org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem
public class SWTBotTreeItem
Field Summary |
---|
Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
description, display, log, widget |
Constructor Summary | |
---|---|
SWTBotTreeItem(TreeItem treeItem)
|
|
SWTBotTreeItem(TreeItem treeItem,
SelfDescribing description)
|
Method Summary | |
---|---|
protected void |
assertEnabled()
Check if the widget is enabled, throws if the widget is disabled. |
String |
cell(int column)
Returns the text stored at the given column index in the receiver, or empty string if the text has not been set. |
String |
cell(int row,
int column)
Gets the cell data for the given row/column index. |
void |
check()
Check the tree item. |
SWTBotTreeItem |
click()
Clicks on this node. |
SWTBotTreeItem |
click(int column)
Clicks on this node at the given column index. |
protected void |
clickXY(int x,
int y)
Click on the table at given coordinates |
SWTBotTreeItem |
collapse()
Collapses the tree item to simulate click the plus sign. |
SWTBotTreeItem |
collapseNode(String nodeText)
Collapses the node matching the given node text. |
SWTBotMenu |
contextMenu(String text)
Gets the context menu matching the text. |
protected Event |
createEvent()
Creates an event. |
SWTBotTreeItem |
doubleClick()
Double clicks on this node. |
SWTBotTreeItem |
expand()
Expands the tree item to simulate click the plus sign. |
SWTBotTreeItem |
expandNode(String... nodes)
Expands the node matching the given node texts. |
SWTBotTreeItem[] |
getItems()
Gets all the items in this tree node. |
SWTBotTreeItem |
getNode(int row)
Gets the nodes at the given, zero-relative index in the receiver. |
SWTBotTreeItem |
getNode(String nodeText)
Gets the first node found matching the given node text. |
SWTBotTreeItem |
getNode(String nodeText,
int index)
Gets the node matching the given node text and index. |
List<String> |
getNodes()
Gets the nodes of the tree item. |
List<SWTBotTreeItem> |
getNodes(String nodeText)
Gets all nodes matching the given node text. |
String |
getText()
Gets the text of this object's widget. |
boolean |
isChecked()
Gets if the checkbox button is checked. |
boolean |
isEnabled()
Gets if the object's widget is enabled. |
boolean |
isExpanded()
Gets if the item is expanded. |
boolean |
isSelected()
|
TableRow |
row()
Returns the table row representation of cell values |
int |
rowCount()
Returns the number of items contained in the receiver that are direct item children of the receiver. |
SWTBotTreeItem |
select()
Selects the current tree item. |
SWTBotTreeItem |
select(String... items)
Selects the items matching the array provided. |
SWTBotTreeItem |
select(String item)
Selects the item matching the given name. |
void |
toggleCheck()
Toggle the tree item. |
void |
uncheck()
Uncheck the tree item. |
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
absoluteLocation, asyncExec, backgroundColor, click, contextMenu, createMouseEvent, createSelectionEvent, doubleClickXY, foregroundColor, getId, getToolTipText, hasStyle, isActive, 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 SWTBotTreeItem(TreeItem treeItem) throws WidgetNotFoundException
treeItem
- the widget.
WidgetNotFoundException
- if the widget is null
or widget has been disposed.public SWTBotTreeItem(TreeItem treeItem, SelfDescribing description) throws WidgetNotFoundException
treeItem
- 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 String cell(int column)
column
- the column index.
public TableRow row()
public int rowCount()
public SWTBotTreeItem getNode(int row)
row
- the index of the item to return
public String cell(int row, int column)
row
- the row index.column
- the column index.
getNode(int)
,
cell(int)
public SWTBotTreeItem expand()
public SWTBotTreeItem collapse()
protected Event createEvent()
AbstractSWTBot
createEvent
in class AbstractSWTBot<TreeItem>
AbstractSWTBot.widget
and AbstractSWTBot.display
. Subclasses may override to set other
event properties.public List<String> getNodes()
public SWTBotTreeItem expandNode(String... nodes)
nodes
- the text on the node.
null
if none exists.
WidgetNotFoundException
- if any of the nodes on the path do not existpublic SWTBotTreeItem collapseNode(String nodeText)
nodeText
- the text on the node.
null
if not match exists.public SWTBotTreeItem getNode(String nodeText, int index)
nodeText
- the text on the node.index
- the n'th node with the nodeText.
WidgetNotFoundException
if not match exists.public List<SWTBotTreeItem> getNodes(String nodeText)
nodeText
- the text on the node.
WidgetNotFoundException
if not match exists.public SWTBotTreeItem getNode(String nodeText)
nodeText
- the text on the node.
WidgetNotFoundException
if not match exists.public SWTBotTreeItem select()
protected void clickXY(int x, int y)
clickXY
in class AbstractSWTBot<TreeItem>
x
- the x co-ordinate of the clicky
- the y co-ordinate of the clickpublic SWTBotTreeItem click()
click
in class AbstractSWTBot<TreeItem>
public SWTBotTreeItem click(int column)
public SWTBotTreeItem doubleClick()
public SWTBotTreeItem select(String... items)
items
- the items to select.
public SWTBotTreeItem select(String item)
item
- the items to select.
public String getText()
AbstractSWTBot
getText
in class AbstractSWTBot<TreeItem>
public SWTBotMenu contextMenu(String text)
AbstractSWTBot
contextMenu
in class AbstractSWTBot<TreeItem>
text
- the text on the context menu.
public void toggleCheck()
public void check()
public void uncheck()
public boolean isChecked()
true
if the checkbox is checked. Otherwise false
.protected void assertEnabled()
AbstractSWTBot
assertEnabled
in class AbstractSWTBot<TreeItem>
public boolean isSelected()
true
if the item is selected, false
otherwise.public boolean isExpanded()
true
if the item is expanded,
false
otherwise.public SWTBotTreeItem[] getItems()
public boolean isEnabled()
AbstractSWTBot
isEnabled
in class AbstractSWTBot<TreeItem>
true
if the widget is enabled.Control.isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |