public class BasicJTableCellWriter extends AbstractJTableCellWriter
JTableCellWriter
.robot
Constructor and Description |
---|
BasicJTableCellWriter(Robot robot) |
Modifier and Type | Method and Description |
---|---|
void |
cancelCellEditing(JTable table,
int row,
int column)
Cancels editing the given cell of the
JTable . |
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 . |
void |
stopCellEditing(JTable table,
int row,
int column)
Stops editing the given cell of the
JTable . |
cannotFindOrActivateEditor, cellEditor, cellEditor, cellEditor, cellLocation, editor, editorForCell, location, scrollToCell, validate, waitForEditorActivation, waitForEditorActivation
public void enterValue(@Nonnull JTable table, int row, int column, @Nonnull String value)
JTable
. This method only supports the following GUI
components as cell editors:
JCheckBox
: valid values for the property "selected" (a boolean) are "true" and "yes", other values are
considered false
.JComboBox
: this writer will select the element which String
representation matches the given
value.JTextComponent
: any value will be entered in the cell.table
- the target JTable
.row
- the row index of the cell.column
- the column index of the cell.value
- the value to enter.ActionFailedException
- if this writer is unable to handle the underlying cell
editor.public void startCellEditing(@Nonnull JTable table, int row, int column)
JTable
. This method only supports the following Swing components as
cell editors:
JCheckBox
JComboBox
JTextComponent
row
- the row index of the cell.column
- the column index of the cell.table
- the target JTable
.ActionFailedException
- if this writer is unable to handle the underlying cell
editor.JTableCellWriter.startCellEditing(JTable, int, int)
public void stopCellEditing(@Nonnull JTable table, int row, int column)
JTable
. This method only supports the following Swing components as
cell editors:
JCheckBox
JComboBox
JTextComponent
stopCellEditing
in interface JTableCellWriter
stopCellEditing
in class AbstractJTableCellWriter
row
- the row index of the cell.column
- the column index of the cell.table
- the target JTable
.ActionFailedException
- if this writer is unable to handle the underlying cell
editor.JTableCellWriter.stopCellEditing(JTable, int, int)
public void cancelCellEditing(@Nonnull JTable table, int row, int column)
JTable
. This method only supports the following Swing components as
cell editors:
JCheckBox
JComboBox
JTextComponent
cancelCellEditing
in interface JTableCellWriter
cancelCellEditing
in class AbstractJTableCellWriter
row
- the row index of the cell.column
- the column index of the cell.table
- the target JTable
.ActionFailedException
- if this writer is unable to handle the underlying cell
editor.JTableCellWriter.cancelCellEditing(JTable, int, int)
Copyright © 2014–2019 AssertJ. All rights reserved.