|
||||||||||
| 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<Table>
org.eclipse.swtbot.swt.finder.widgets.SWTBotTable
public class SWTBotTable
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
|---|
description, display, log, widget |
| Constructor Summary | |
|---|---|
SWTBotTable(Table table)
Constructs a new instance of this object. |
|
SWTBotTable(Table table,
SelfDescribing description)
Constructs a new instance of this object. |
|
| Method Summary | |
|---|---|
protected void |
assertIsLegalCell(int row,
int column)
Asserts that the row and column are legal for this instance of the table. |
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 and column label. |
void |
click(int row,
int column)
Click on the table on given cell. |
int |
columnCount()
Gets the column count. |
List<String> |
columns()
Gets the columns in this table. |
boolean |
containsItem(String item)
|
void |
doubleClick(int row,
int column)
Click on the table on given cell. |
SWTBotTableItem |
getTableItem(int row)
Gets the table item matching the given row number. |
SWTBotTableItem |
getTableItem(String itemText)
Gets the table item matching the given name. |
SWTBotTableColumn |
header(String label)
Gets the column matching the given label. |
int |
indexOf(String item)
Gets the index of the item matching the given item. |
int |
indexOf(String item,
int column)
Gets the index of the item matching the given item and the given column. |
int |
indexOf(String item,
String column)
Gets the index of the item matching the given item and the given column. |
int |
indexOfColumn(String column)
|
protected void |
notifySelect()
Notifies the selection. |
int |
rowCount()
Gets the row count. |
void |
select(int... indices)
Selects the given index items. |
void |
select(String... items)
Sets the selection to the given items. |
TableCollection |
selection()
Gets the selected items. |
int |
selectionCount()
Gets the selected item count. |
void |
unselect()
Unselect all selections. |
| 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 SWTBotTable(Table table)
throws WidgetNotFoundException
table - the widget.
WidgetNotFoundException - if the widget is null or widget has been disposed.
public SWTBotTable(Table table,
SelfDescribing description)
throws WidgetNotFoundException
table - 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 rowCount()
public int columnCount()
public List<String> columns()
public int indexOfColumn(String column)
column - the text on the column.
public SWTBotTableColumn header(String label)
throws WidgetNotFoundException
label - the header text.
WidgetNotFoundException - if the header is not found.
public String cell(int row,
int column)
row - the row in the table.column - the column in the table.
public String cell(int row,
String columnName)
row - the row in the tablecolumnName - the column title.
public int selectionCount()
public TableCollection selection()
public void select(String... items)
items - the items to select in the table.public int indexOf(String item)
item - the item in the table.
public boolean containsItem(String item)
item - the item in the table.
true if the table contains the specified item, false otherwise.
public int indexOf(String item,
int column)
item - the index of the item in the table, or -1 if the item does not exist in the table.column - the column for which to get the index of.
public int indexOf(String item,
String column)
item - the index of the item in the table, or -1 if the item does not exist in the table.column - the column for which to get the index of.
public void unselect()
public void select(int... indices)
indices - the row indices to select in the table.protected void notifySelect()
public void click(int row,
int column)
row - the row in the table.column - the column in the table.
public void doubleClick(int row,
int column)
row - the row in the table.column - the column in the table.
protected void assertIsLegalCell(int row,
int column)
row - the row numbercolumn - the column number
public SWTBotTableItem getTableItem(String itemText)
throws WidgetNotFoundException
itemText - the text on the node.
WidgetNotFoundException - if the node was not found.
public SWTBotTableItem getTableItem(int row)
throws WidgetNotFoundException
row - the row number.
WidgetNotFoundException - if the node was not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||