public class BasicJTableCellWriter extends AbstractJTableCellWriter
JTableCellWriter
.location, robot
Constructor and Description |
---|
BasicJTableCellWriter(Robot robot) |
Modifier and Type | Method and Description |
---|---|
void |
cancelCellEditing(JTable table,
int row,
int column)
Cancels editing the given cell of the
. |
void |
enterValue(JTable table,
int row,
int column,
String value)
Enters the given value at the given cell of the
JTable . |
void |
startCellEditing(JTable table,
int row,
int column)
Starts editing the given cell of the
. |
void |
stopCellEditing(JTable table,
int row,
int column)
Stops editing the given cell of the
. |
cannotFindOrActivateEditor, cellEditor, cellEditor, cellEditor, cellLocation, editor, editorForCell, scrollToCell, validate, waitForEditorActivation, waitForEditorActivation
public BasicJTableCellWriter(Robot robot)
public void enterValue(JTable table, int row, int column, String value)
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.table
- the target JTable
.row
- the row index of the cell.column
- the column index of the cell.value
- the value to enter.ActionFailedException
- if this writer is unable to handle the underlying cell editor.public void startCellEditing(JTable table, int row, int column)
JTable
. This method only supports the following GUI
components as cell editors:
row
- the row index of the cell.column
- the column index of the cell.table
- the target JTable
.ActionFailedException
- if this writer is unable to handle the underlying cell editor.JTableCellWriter.startCellEditing(JTable, int, int)
public void stopCellEditing(JTable table, int row, int column)
JTable
. This method only supports the following GUI
components as cell editors:
stopCellEditing
in interface JTableCellWriter
stopCellEditing
in class AbstractJTableCellWriter
row
- the row index of the cell.column
- the column index of the cell.table
- the target JTable
.ActionFailedException
- if this writer is unable to handle the underlying cell editor.JTableCellWriter.stopCellEditing(JTable, int, int)
public void cancelCellEditing(JTable table, int row, int column)
JTable
. This method only supports the following GUI
components as cell editors:
cancelCellEditing
in interface JTableCellWriter
cancelCellEditing
in class AbstractJTableCellWriter
row
- the row index of the cell.column
- the column index of the cell.table
- the target JTable
.ActionFailedException
- if this writer is unable to handle the underlying cell editor.JTableCellWriter.cancelCellEditing(JTable, int, int)
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.