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 JTableCheckBoxEditorCellWriterprivate final JTableComboBoxEditorCellWriterprivate final JTableTextComponentEditorCellWriterFields inherited from class org.fest.swing.driver.AbstractJTableCellWriter
location, robot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelCellEditing(JTable table, int row, int column) Cancels editing the given cell of the.JTableprivate JTableCellWritercellWriterFor(JTable table, int row, int column) voidenterValue(JTable table, int row, int column, String value) Enters the given value at the given cell of theJTable.voidstartCellEditing(JTable table, int row, int column) Starts editing the given cell of the.JTablevoidstopCellEditing(JTable table, int row, int column) Stops editing the given cell of the.JTableMethods 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 consideredJCheckBoxfalse.: this writer will select the element whichJComboBoxStringrepresentation 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:
stopCellEditingin interfaceJTableCellWriter- Overrides:
stopCellEditingin 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:
cancelCellEditingin interfaceJTableCellWriter- Overrides:
cancelCellEditingin 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
-