org.fest.swing.driver
Class BasicJTableCellWriter
java.lang.Object
org.fest.swing.driver.AbstractJTableCellWriter
org.fest.swing.driver.BasicJTableCellWriter
- All Implemented Interfaces:
- JTableCellWriter
public class BasicJTableCellWriter
- extends AbstractJTableCellWriter
Understands the default implementation of JTableCellWriter
.
- Author:
- Yvonne Wang, Alex Ruiz
Methods inherited from class org.fest.swing.driver.AbstractJTableCellWriter |
cannotFindOrActivateEditor, cellEditor, cellEditor, cellEditor, cellLocation, editor, editorForCell, scrollToCell, validate, waitForEditorActivation, waitForEditorActivation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicJTableCellWriter
public BasicJTableCellWriter(Robot robot)
enterValue
public void enterValue(JTable table,
int row,
int column,
String value)
- Enters the given value at the given cell of the
JTable
. This method only supports the following GUI
components as cell editors:
JCheckBox
: valid values for the property "selected" (a boolean) are "true" and "yes",
other values are considered false
.
JComboBox
: this writer will select the element which String
representation
matches the given value.
JTextComponent
: any value will be entered in the cell.
- Parameters:
table
- the target JTable
.row
- the row index of the cell.column
- the column index of the cell.value
- the value to enter.
- Throws:
ActionFailedException
- if this writer is unable to handle the underlying cell editor.
startCellEditing
public void startCellEditing(JTable table,
int row,
int column)
- Starts editing the given cell of the
JTable
. This method only supports the following GUI
components as cell editors:
- Parameters:
row
- the row index of the cell.column
- the column index of the cell.table
- the target JTable
.
- Throws:
ActionFailedException
- if this writer is unable to handle the underlying cell editor.- See Also:
JTableCellWriter.startCellEditing(JTable, int, int)
stopCellEditing
public void stopCellEditing(JTable table,
int row,
int column)
- Stops editing the given cell of the
JTable
. This method only supports the following GUI
components as cell editors:
- Specified by:
stopCellEditing
in interface JTableCellWriter
- Overrides:
stopCellEditing
in class AbstractJTableCellWriter
- Parameters:
row
- the row index of the cell.column
- the column index of the cell.table
- the target JTable
.
- Throws:
ActionFailedException
- if this writer is unable to handle the underlying cell editor.- See Also:
JTableCellWriter.stopCellEditing(JTable, int, int)
cancelCellEditing
public void cancelCellEditing(JTable table,
int row,
int column)
- Cancels editing the given cell of the
JTable
. This method only supports the following GUI
components as cell editors:
- Specified by:
cancelCellEditing
in interface JTableCellWriter
- Overrides:
cancelCellEditing
in class AbstractJTableCellWriter
- Parameters:
row
- the row index of the cell.column
- the column index of the cell.table
- the target JTable
.
- Throws:
ActionFailedException
- if this writer is unable to handle the underlying cell editor.- See Also:
JTableCellWriter.cancelCellEditing(JTable, int, int)
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.