Package org.fest.swing.driver
Class BasicJTableCellWriter
java.lang.Object
org.fest.swing.driver.AbstractJTableCellWriter
org.fest.swing.driver.BasicJTableCellWriter
- All Implemented Interfaces:
JTableCellWriter
Understands the default implementation of
JTableCellWriter
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JTableCheckBoxEditorCellWriter
private final JTableComboBoxEditorCellWriter
private final JTableTextComponentEditorCellWriter
Fields inherited from class org.fest.swing.driver.AbstractJTableCellWriter
location, robot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelCellEditing
(JTable table, int row, int column) Cancels editing the given cell of the
.JTable
private JTableCellWriter
cellWriterFor
(JTable table, int row, int column) void
enterValue
(JTable table, int row, int column, String value) Enters the given value at the given cell of theJTable
.void
startCellEditing
(JTable table, int row, int column) Starts editing the given cell of the
.JTable
void
stopCellEditing
(JTable table, int row, int column) Stops editing the given cell of the
.JTable
Methods inherited from class org.fest.swing.driver.AbstractJTableCellWriter
cannotFindOrActivateEditor, cellEditor, cellEditor, cellEditor, cellLocation, editor, editorForCell, scrollToCell, validate, waitForEditorActivation, waitForEditorActivation
-
Field Details
-
checkBoxWriter
-
comboBoxWriter
-
textComponentWriter
-
-
Constructor Details
-
BasicJTableCellWriter
-
-
Method Details
-
enterValue
Enters the given value at the given cell of theJTable
. This method only supports the following GUI components as cell editors:
: valid values for the property "selected" (a boolean) are "true" and "yes", other values are consideredJCheckBox
false
.
: this writer will select the element whichJComboBox
String
representation matches the given value.
: any value will be entered in the cell.JTextComponent
- Parameters:
table
- the targetJTable
.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
Starts editing the given cell of the
. This method only supports the following GUI components as cell editors:JTable
- Parameters:
row
- the row index of the cell.column
- the column index of the cell.table
- the targetJTable
.- Throws:
ActionFailedException
- if this writer is unable to handle the underlying cell editor.- See Also:
-
stopCellEditing
Stops editing the given cell of the
. This method only supports the following GUI components as cell editors:JTable
- Specified by:
stopCellEditing
in interfaceJTableCellWriter
- Overrides:
stopCellEditing
in classAbstractJTableCellWriter
- Parameters:
row
- the row index of the cell.column
- the column index of the cell.table
- the targetJTable
.- Throws:
ActionFailedException
- if this writer is unable to handle the underlying cell editor.- See Also:
-
cancelCellEditing
Cancels editing the given cell of the
. This method only supports the following GUI components as cell editors:JTable
- Specified by:
cancelCellEditing
in interfaceJTableCellWriter
- Overrides:
cancelCellEditing
in classAbstractJTableCellWriter
- Parameters:
row
- the row index of the cell.column
- the column index of the cell.table
- the targetJTable
.- Throws:
ActionFailedException
- if this writer is unable to handle the underlying cell editor.- See Also:
-
cellWriterFor
-