public class JTableTextComponentEditorCellWriter extends AbstractJTableCellWriter
JTableCellWriter
that knows how to use JTextComponent
s as cell editors.Modifier and Type | Field and Description |
---|---|
protected JTextComponentDriver |
driver |
robot
Constructor and Description |
---|
JTableTextComponentEditorCellWriter(Robot robot) |
Modifier and Type | Method and Description |
---|---|
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 . |
cancelCellEditing, cannotFindOrActivateEditor, cellEditor, cellEditor, cellEditor, cellLocation, editor, editorForCell, location, scrollToCell, stopCellEditing, validate, waitForEditorActivation, waitForEditorActivation
protected final JTextComponentDriver driver
@RunsInEDT public void enterValue(@Nonnull JTable table, int row, int column, @Nonnull String value)
JTableCellWriter
JTable
. To edit a cell using this method, it is not
necessary to call JTableCellWriter.startCellEditing(JTable, int, int)
or JTableCellWriter.stopCellEditing(JTable, int, int)
.table
- the target JTable
.row
- the row index of the cell.column
- the column index of the cell.value
- the value to enter.@RunsInEDT public void startCellEditing(@Nonnull JTable table, int row, int column)
JTableCellWriter
JTable
. This method should be called before manipulating the AWT or
Swing Component
returned by JTableCellWriter.editorForCell(JTable, int, int)
.table
- the target JTable
.row
- the row index of the cell.column
- the column index of the cell.JTableCellWriter.editorForCell(JTable, int, int)
Copyright © 2014–2019 AssertJ. All rights reserved.