csheets.ui.ctrl
Class FocusOwnerAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by csheets.ui.ctrl.BaseAction
          extended by csheets.ui.ctrl.FocusOwnerAction
All Implemented Interfaces:
ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
AddSpreadsheetAction, AssertionPanel.ApplyAction, BackgroundAction, BorderAction, CellDecoratorAction, ClearAction, ClipboardAction, ComponentAction, DeleteAction, FontAction, ForegroundAction, FormatAction, InsertColumnAction, InsertRowAction, PrintAction, RedoAction, RemoveColumnAction, RemoveRowAction, RemoveSpreadsheetAction, RenameSpreadsheetAction, SearchAction, SelectAllAction, SideBarAction, SortAction, StyleAction, TableDecoratorAction, UndoAction

public abstract class FocusOwnerAction
extends BaseAction
implements PropertyChangeListener

An action to be invoked on the spreadsheet table that is the focus owner.

Author:
Einar Pehrson
See Also:
Serialized Form

Field Summary
protected  SpreadsheetTable focusOwner
          The current focus owner
 
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
FocusOwnerAction()
          Creates a new focus owner action.
 
Method Summary
 void propertyChange(PropertyChangeEvent event)
          Stores the focus owner
 
Methods inherited from class csheets.ui.ctrl.BaseAction
defineProperties, getName, requiresFile, requiresModification, showErrorDialog
 
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
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

focusOwner

protected SpreadsheetTable focusOwner
The current focus owner

Constructor Detail

FocusOwnerAction

public FocusOwnerAction()
Creates a new focus owner action.

Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent event)
Stores the focus owner

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
event - the event that was fired