Package com.bc.ceres.swing.actions
Class AbstractSystemAction
java.lang.Object
javax.swing.AbstractAction
com.bc.ceres.swing.actions.AbstractSystemAction
- All Implemented Interfaces:
 ActionListener,Serializable,Cloneable,EventListener,Action
- Direct Known Subclasses:
 AbstractSelectionAction,AbstractUndoAction
An abstract base class for generic actions which can is executed
 either when 
actionPerformed(java.awt.event.ActionEvent) is called from a Swing UI,
 or programmatically by invoking execute().- Since:
 - Ceres 0.10
 - See Also:
 
- 
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSystemAction(String name, KeyStroke acceleratorKey, String iconResource)  - 
Method Summary
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled 
- 
Constructor Details
- 
AbstractSystemAction
 
 - 
 - 
Method Details
- 
actionPerformed
Invoked when an action occurs. The method is implemented as follows:if (isExecutable()) { execute(); } updateState();- Parameters:
 e- The action event.- See Also:
 
 - 
isExecutable
public abstract boolean isExecutable() - 
execute
public abstract void execute() - 
updateState
public void updateState()Invoked to update this action's state, usually in reponse to some application specific events. The method is implemented as follows:boolean executable = isExecutable(); setEnabled(executable);
 - 
loadIcon
 
 -