Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.swtbot.swt.finder.widgets
Class SWTBotTableItem

    java.lang.Object
      org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<TableItem>
          org.eclipse.swtbot.swt.finder.widgets.SWTBotTableItem

    public class SWTBotTableItem

extends AbstractSWTBot<TableItem>

Since:
  1.3
Version:
  $Id$
Author:
  Vincent MAHE <vmahe [at] free [dot]fr>, Cédric Chabanois

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

### SWTBotTableItem

    public SWTBotTableItem(TableItem tableItem)
                    throws WidgetNotFoundException

Parameters:
  `tableItem` - the widget.
Throws:
  `WidgetNotFoundException` - if the widget is `null` or widget has been disposed.

### SWTBotTableItem

    public SWTBotTableItem(TableItem tableItem,
                           SelfDescribing description)
                    throws WidgetNotFoundException

Parameters:
  `tableItem` - the widget.
  `description` - the description of the widget, this will be reported by `AbstractSWTBot.toString()`
Throws:
  `WidgetNotFoundException` - if the widget is `null` or widget has been disposed.

Method Detail

### select

    public SWTBotTableItem select()

  Selects the current table item.

  Returns:
    the current node.

### clickXY

    protected void clickXY(int x,
                           int y)

  Click on the table at given coordinates

  Overrides:
    `clickXY` in class `AbstractSWTBot<TableItem>`
  Parameters:
    `x` - the x co-ordinate of the click
    `y` - the y co-ordinate of the click

### click

    public SWTBotTableItem click()

  Clicks on this node.

  Overrides:
    `click` in class `AbstractSWTBot<TableItem>`
  Returns:
    the current node.

### getText

    public String getText()

  Description copied from class: `AbstractSWTBot`
  Gets the text of this object's widget.

  Overrides:
    `getText` in class `AbstractSWTBot<TableItem>`
  Returns:
    the text on the widget.

### getText

    public String getText(int index)

### contextMenu

    public SWTBotMenu contextMenu(String text)
                           throws WidgetNotFoundException

  Description copied from class: `AbstractSWTBot`
  Gets the context menu matching the text.

  Overrides:
    `contextMenu` in class `AbstractSWTBot<TableItem>`
  Parameters:
    `text` - the text on the context menu.
  Returns:
    the menu that has the given text.
  Throws:
    `WidgetNotFoundException` - if the widget is not found.

### toggleCheck

    public void toggleCheck()

  Toggle the table item.

### check

    public void check()

  Check the table item.

### uncheck

    public void uncheck()

  Uncheck the table item.

### isChecked

    public boolean isChecked()

  Gets if the checkbox button is checked.

  Returns:
    `true` if the checkbox is checked. Otherwise `false`.

### isGrayed

    public boolean isGrayed()

  Gets if the checkbox button is grayed.

  Returns:
    `true` if the checkbox is grayed, `false` otherwise.

### createEvent

    protected Event createEvent()

  Description copied from class: `AbstractSWTBot`
  Creates an event.

  Overrides:
    `createEvent` in class `AbstractSWTBot<TableItem>`
  Returns:
    an event that encapsulates `AbstractSWTBot.widget` and `AbstractSWTBot.display`. Subclasses may override to set other event properties.

### assertEnabled

    protected void assertEnabled()

  Description copied from class: `AbstractSWTBot`
  Check if the widget is enabled, throws if the widget is disabled.

  Overrides:
    `assertEnabled` in class `AbstractSWTBot<TableItem>`

### isEnabled

    public boolean isEnabled()

  Description copied from class: `AbstractSWTBot`
  Gets if the object's widget is enabled.

  Overrides:
    `isEnabled` in class `AbstractSWTBot<TableItem>`
  Returns:
    `true` if the widget is enabled.
  See Also:
    `Control.isEnabled()`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD