csheets.ui.sheet
Class CellEditor.StopAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by csheets.ui.sheet.CellEditor.StopAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
CellEditor

protected class CellEditor.StopAction
extends AbstractAction

An action for stopping editing of a cell.

Author:
Einar Pehrson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
CellEditor.StopAction(int columns, int rows)
          Creates an edit stopping action.
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellEditor.StopAction

public CellEditor.StopAction(int columns,
                             int rows)
Creates an edit stopping action. When the action is invoked the active cell selection is moved the given number of columns and rows.

Parameters:
columns - the number of columns to move the selection down
rows - the number of rows to move the selection to the right
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)