org.assertj.swing.driver
Class JTableCheckBoxEditorCellWriter

java.lang.Object
  extended by org.assertj.swing.driver.AbstractJTableCellWriter
      extended by org.assertj.swing.driver.JTableCheckBoxEditorCellWriter
All Implemented Interfaces:
JTableCellWriter

public class JTableCheckBoxEditorCellWriter
extends AbstractJTableCellWriter

JTableCellWriter that knows how to use JTextComponents as cell editors.

Author:
Alex Ruiz, Yvonne Wang

Field Summary
 
Fields inherited from class org.assertj.swing.driver.AbstractJTableCellWriter
robot
 
Constructor Summary
JTableCheckBoxEditorCellWriter(Robot robot)
           
 
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
 

Constructor Detail

JTableCheckBoxEditorCellWriter

public JTableCheckBoxEditorCellWriter(@Nonnull
                                      Robot robot)
Method Detail

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.