dsto.dfc.swing.commands
Class AbstractMutableCommand
java.lang.Object
dsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.AbstractMutableCommand
- All Implemented Interfaces:
- Command, Iconic, Copyable, PropertyEventSource, ActionListener, Cloneable, EventListener
- Direct Known Subclasses:
- AbstractBooleanCommand, AbstractCnpCommand, AbstractCompositeCommand, AbstractEnumeratedCommand, AbstractSelectionBasedCommand, AbstractUndoableCommand, BasicFileSaveAsCommand, BasicFileSaveCommand, BasicPropertiesCommand, CmdClosePanel, CmdFloatPanel, CmdPageLayoutPanel, CmdPrintPanel, CmdPrintPreviewPanel
public abstract class AbstractMutableCommand
- extends AbstractCommand
- implements PropertyEventSource
Base class for commands that have changeable properties. Provides
PropertyEventSource implementation and a mutable "enabled"
property.
- Version:
- $Revision$
Methods inherited from class dsto.dfc.swing.commands.AbstractCommand |
actionPerformed, canReplace, execute, getAccelerator, getDefaultDisplayName, getDescription, getDisplayName, getGroupInView, getIcon, getLargeIcon, getLogString, getMnemonic, getName, isInteractive, setDisplayName |
listeners
protected transient BasicPropertyEventSource listeners
AbstractMutableCommand
public AbstractMutableCommand()
AbstractMutableCommand
public AbstractMutableCommand(String iconName)
isEnabled
public boolean isEnabled()
- Description copied from class:
AbstractCommand
- Returns true.
- Specified by:
isEnabled
in interface Command
- Overrides:
isEnabled
in class AbstractCommand
setEnabled
public void setEnabled(boolean newValue)
setIcon
public void setIcon(Icon newIcon)
- Overrides:
setIcon
in class AbstractCommand
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
- Specified by:
addPropertyChangeListener
in interface PropertyEventSource
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
- Specified by:
removePropertyChangeListener
in interface PropertyEventSource
clone
public Object clone()
- Description copied from interface:
Copyable
- Create a completely separate copy of this object and any mutable
objects owned by the object.
NOTE: subclasses should not remove the CloneNotSupportedException
throws clause if they themselves support subclassing:
removing the CloneNotSupportedException declaration stops
subclasses from indicating that a clone was not possible.
- Specified by:
clone
in interface Copyable
- Overrides:
clone
in class AbstractCommand
Copyright © 2008 Commonwealth of Australia