|
||||||||||
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<TableItem> org.eclipse.swtbot.swt.finder.widgets.SWTBotTableItem
public class SWTBotTableItem
Field Summary |
---|
Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
description, display, log, widget |
Constructor Summary | |
---|---|
SWTBotTableItem(TableItem tableItem)
|
|
SWTBotTableItem(TableItem tableItem,
SelfDescribing description)
|
Method Summary | |
---|---|
protected void |
assertEnabled()
Check if the widget is enabled, throws if the widget is disabled. |
void |
check()
Check the table item. |
SWTBotTableItem |
click()
Clicks on this node. |
protected void |
clickXY(int x,
int y)
Click on the table at given coordinates |
SWTBotMenu |
contextMenu(String text)
Gets the context menu matching the text. |
protected Event |
createEvent()
Creates an event. |
String |
getText()
Gets the text of this object's widget. |
String |
getText(int index)
|
boolean |
isChecked()
Gets if the checkbox button is checked. |
boolean |
isEnabled()
Gets if the object's widget is enabled. |
boolean |
isGrayed()
Gets if the checkbox button is grayed. |
SWTBotTableItem |
select()
Selects the current table item. |
void |
toggleCheck()
Toggle the table item. |
void |
uncheck()
Uncheck the table 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 SWTBotTableItem(TableItem tableItem) throws WidgetNotFoundException
tableItem
- the widget.
WidgetNotFoundException
- if the widget is null
or widget has been disposed.public SWTBotTableItem(TableItem tableItem, SelfDescribing description) throws WidgetNotFoundException
tableItem
- 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 SWTBotTableItem select()
protected void clickXY(int x, int y)
clickXY
in class AbstractSWTBot<TableItem>
x
- the x co-ordinate of the clicky
- the y co-ordinate of the clickpublic SWTBotTableItem click()
click
in class AbstractSWTBot<TableItem>
public String getText()
AbstractSWTBot
getText
in class AbstractSWTBot<TableItem>
public String getText(int index)
public SWTBotMenu contextMenu(String text) throws WidgetNotFoundException
AbstractSWTBot
contextMenu
in class AbstractSWTBot<TableItem>
text
- the text on the context menu.
WidgetNotFoundException
- if the widget is not found.public void toggleCheck()
public void check()
public void uncheck()
public boolean isChecked()
true
if the checkbox is checked. Otherwise false
.public boolean isGrayed()
true
if the checkbox is grayed, false
otherwise.protected Event createEvent()
AbstractSWTBot
createEvent
in class AbstractSWTBot<TableItem>
AbstractSWTBot.widget
and AbstractSWTBot.display
. Subclasses may override to set other
event properties.protected void assertEnabled()
AbstractSWTBot
assertEnabled
in class AbstractSWTBot<TableItem>
public boolean isEnabled()
AbstractSWTBot
isEnabled
in class AbstractSWTBot<TableItem>
true
if the widget is enabled.Control.isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |