Package org.fest.swing.driver
Class JTableComboBoxEditorCellWriter
java.lang.Object
org.fest.swing.driver.AbstractJTableCellWriter
org.fest.swing.driver.JTableComboBoxEditorCellWriter
- All Implemented Interfaces:
JTableCellWriter
Understands an implementation of
JTableCellWriter
that knows how to use
JComboBox
es as cell editors.-
Field Summary
FieldsFields inherited from class org.fest.swing.driver.AbstractJTableCellWriter
location, robot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JComboBox
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
private void
selectOrType
(JComboBox editor, String value) void
startCellEditing
(JTable table, int row, int column) Starts editing the given cell of the
.JTable
private JComboBox
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
-
JTableComboBoxEditorCellWriter
-
-
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.
-
selectOrType
-
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
-
waitForEditorActivation
-