dsto.dfc.swing.commands
Class AbstractSelectionBasedCommand
java.lang.Object
dsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.AbstractMutableCommand
dsto.dfc.swing.commands.AbstractSelectionBasedCommand
- All Implemented Interfaces:
- Command, SelectionListener, Iconic, Copyable, Disposable, PropertyEventSource, ActionListener, Cloneable, EventListener
- Direct Known Subclasses:
- AbstractMoveCommand, BasicDeleteCommand, CmdAddEntry, CmdRename, StyleSheetTableView.CmdClearValue
public abstract class AbstractSelectionBasedCommand
- extends AbstractMutableCommand
- implements SelectionListener, Disposable
Base class for commands that are affected by changes in a
SelectionEventSource (eg become disabled when nothing is selected).
Subclasses can override selectionChanged () to catch selection
changes in the source.
- Version:
- $Revision$
Method Summary |
void |
dispose()
Dispose of the object (unregister listeners, close open resources
etc). |
void |
selectionChanged(SelectionEvent e)
SelectionListener interface implementation: does nothing. |
Methods inherited from class dsto.dfc.swing.commands.AbstractCommand |
actionPerformed, canReplace, execute, getAccelerator, getDefaultDisplayName, getDescription, getDisplayName, getGroupInView, getIcon, getLargeIcon, getLogString, getMnemonic, getName, isInteractive, setDisplayName |
source
protected SelectionEventSource source
AbstractSelectionBasedCommand
public AbstractSelectionBasedCommand(SelectionEventSource source)
AbstractSelectionBasedCommand
public AbstractSelectionBasedCommand(SelectionEventSource source,
String iconName)
AbstractSelectionBasedCommand
protected AbstractSelectionBasedCommand()
dispose
public void dispose()
- Description copied from interface:
Disposable
- Dispose of the object (unregister listeners, close open resources
etc). It should be safe to call this method more than once.
Note for beans that support client event listeners: if there are
listeners registered when this is called, this method should do
nothing.
- Specified by:
dispose
in interface Disposable
selectionChanged
public void selectionChanged(SelectionEvent e)
- SelectionListener interface implementation: does nothing.
- Specified by:
selectionChanged
in interface SelectionListener
Copyright © 2008 Commonwealth of Australia