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
JTextComponents as cell editors.-
Field Summary
FieldsFields inherited from class org.fest.swing.driver.AbstractJTableCellWriter
location, robot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JTextComponentactivateEditorWithDoubleClick(JTable table, int row, int column, Point cellLocation) private JTextComponentactivateEditorWithF2Key(JTable table, int row, int column, Point cellLocation) private JTextComponentdoStartCellEditing(JTable table, int row, int column) voidenterValue(JTable table, int row, int column, String value) Enters the given value at the given cell of the.JTablevoidstartCellEditing(JTable table, int row, int column) Starts editing the given cell of the.JTableprivate JTextComponentwaitForEditorActivation(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 callJTableorJTableCellWriter.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 theJTablereturned 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
-