org.fest.swing.driver
Class BasicJTableCellWriter

java.lang.Object
  extended by org.fest.swing.driver.AbstractJTableCellWriter
      extended by org.fest.swing.driver.BasicJTableCellWriter
All Implemented Interfaces:
JTableCellWriter

public class BasicJTableCellWriter
extends AbstractJTableCellWriter

Understands the default implementation of JTableCellWriter.

Author:
Yvonne Wang, Alex Ruiz

Field Summary
 
Fields inherited from class org.fest.swing.driver.AbstractJTableCellWriter
location, robot
 
Constructor Summary
BasicJTableCellWriter(Robot robot)
           
 
Method Summary
 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.
 
Methods inherited from class org.fest.swing.driver.AbstractJTableCellWriter
cannotFindOrActivateEditor, cellEditor, cellEditor, cellEditor, cellLocation, editor, editorForCell, scrollToCell, validate, waitForEditorActivation, waitForEditorActivation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicJTableCellWriter

public BasicJTableCellWriter(Robot robot)
Method Detail

enterValue

public void enterValue(JTable table,
                       int row,
                       int column,
                       String value)
Enters the given value at the given cell of the JTable. This method only supports the following GUI components as cell editors:

Parameters:
table - the target JTable.
row - the row index of the cell.
column - the column index of the cell.
value - the value to enter.
Throws:
ActionFailedException - if this writer is unable to handle the underlying cell editor.

startCellEditing

public void startCellEditing(JTable table,
                             int row,
                             int column)
Starts editing the given cell of the JTable. This method only supports the following GUI components as cell editors:

Parameters:
row - the row index of the cell.
column - the column index of the cell.
table - the target JTable.
Throws:
ActionFailedException - if this writer is unable to handle the underlying cell editor.
See Also:
JTableCellWriter.startCellEditing(JTable, int, int)

stopCellEditing

public void stopCellEditing(JTable table,
                            int row,
                            int column)
Stops editing the given cell of the JTable. This method only supports the following GUI components as cell editors:

Specified by:
stopCellEditing in interface JTableCellWriter
Overrides:
stopCellEditing in class AbstractJTableCellWriter
Parameters:
row - the row index of the cell.
column - the column index of the cell.
table - the target JTable.
Throws:
ActionFailedException - if this writer is unable to handle the underlying cell editor.
See Also:
JTableCellWriter.stopCellEditing(JTable, int, int)

cancelCellEditing

public void cancelCellEditing(JTable table,
                              int row,
                              int column)
Cancels editing the given cell of the JTable. This method only supports the following GUI components as cell editors:

Specified by:
cancelCellEditing in interface JTableCellWriter
Overrides:
cancelCellEditing in class AbstractJTableCellWriter
Parameters:
row - the row index of the cell.
column - the column index of the cell.
table - the target JTable.
Throws:
ActionFailedException - if this writer is unable to handle the underlying cell editor.
See Also:
JTableCellWriter.cancelCellEditing(JTable, int, int)


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.