org.assertj.swing.driver
Class JTableTextComponentEditorCellWriter
java.lang.Object
org.assertj.swing.driver.AbstractJTableCellWriter
org.assertj.swing.driver.JTableTextComponentEditorCellWriter
- All Implemented Interfaces:
- JTableCellWriter
public class JTableTextComponentEditorCellWriter
- extends AbstractJTableCellWriter
JTableCellWriter
that knows how to use JTextComponent
s as cell editors.
- Author:
- Alex Ruiz, Yvonne Wang
Method Summary |
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 . |
Methods inherited from class org.assertj.swing.driver.AbstractJTableCellWriter |
cancelCellEditing, cannotFindOrActivateEditor, cellEditor, cellEditor, cellEditor, cellLocation, editor, editorForCell, location, scrollToCell, stopCellEditing, validate, waitForEditorActivation, waitForEditorActivation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
driver
protected final JTextComponentDriver driver
JTableTextComponentEditorCellWriter
public JTableTextComponentEditorCellWriter(@Nonnull
Robot robot)
enterValue
@RunsInEDT
public void enterValue(@Nonnull
JTable table,
int row,
int column,
@Nonnull
String value)
- Description copied from interface:
JTableCellWriter
- Enters the given value at the given cell of the
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)
.
- Parameters:
table
- the target JTable
.row
- the row index of the cell.column
- the column index of the cell.value
- the value to enter.
startCellEditing
@RunsInEDT
public void startCellEditing(@Nonnull
JTable table,
int row,
int column)
- Description copied from interface:
JTableCellWriter
- Starts editing the given cell of the
JTable
. This method should be called before manipulating the AWT or
Swing Component
returned by JTableCellWriter.editorForCell(JTable, int, int)
.
- Parameters:
table
- the target JTable
.row
- the row index of the cell.column
- the column index of the cell.- See Also:
JTableCellWriter.editorForCell(JTable, int, int)
Copyright © 2014–2015 AssertJ. All rights reserved.