Package org.fest.swing.driver
Class JTableTextComponentEditorCellWriter
java.lang.Object
org.fest.swing.driver.AbstractJTableCellWriter
org.fest.swing.driver.JTableTextComponentEditorCellWriter
- All Implemented Interfaces:
JTableCellWriter
Understands an implementation of
JTableCellWriter
that knows how to use
JTextComponent
s as cell editors.-
Field Summary
FieldsFields inherited from class org.fest.swing.driver.AbstractJTableCellWriter
location, robot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JTextComponent
activateEditorWithDoubleClick
(JTable table, int row, int column, Point cellLocation) private JTextComponent
activateEditorWithF2Key
(JTable table, int row, int column, Point cellLocation) private JTextComponent
doStartCellEditing
(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 the
.JTable
void
startCellEditing
(JTable table, int row, int column) Starts editing the given cell of the
.JTable
private JTextComponent
waitForEditorActivation
(JTable table, int row, int column) Methods inherited from class org.fest.swing.driver.AbstractJTableCellWriter
cancelCellEditing, cannotFindOrActivateEditor, cellEditor, cellEditor, cellEditor, cellLocation, editor, editorForCell, scrollToCell, stopCellEditing, validate, waitForEditorActivation, waitForEditorActivation
-
Field Details
-
driver
-
-
Constructor Details
-
JTableTextComponentEditorCellWriter
-
-
Method Details
-
enterValue
Enters the given value at the given cell of the
. To edit a cell using this method, it is not necessary to callJTable
orJTableCellWriter.startCellEditing(JTable, int, int)
.JTableCellWriter.stopCellEditing(JTable, int, int)
- Parameters:
table
- the targetJTable
.row
- the row index of the cell.column
- the column index of the cell.value
- the value to enter.
-
startCellEditing
Starts editing the given cell of the
. This method should be called before manipulating theJTable
returned byComponent
.JTableCellWriter.editorForCell(JTable, int, int)
- Parameters:
table
- the targetJTable
.row
- the row index of the cell.column
- the column index of the cell.- See Also:
-
doStartCellEditing
-
activateEditorWithF2Key
@RunsInEDT private JTextComponent activateEditorWithF2Key(JTable table, int row, int column, Point cellLocation) -
activateEditorWithDoubleClick
@RunsInEDT private JTextComponent activateEditorWithDoubleClick(JTable table, int row, int column, Point cellLocation) -
waitForEditorActivation
-