dsto.dfc.swing.commands
Class CommandButtonSynchronizer
java.lang.Object
dsto.dfc.swing.commands.CommandButtonSynchronizer
- All Implemented Interfaces:
- Disposable, ActionListener, PropertyChangeListener, EventListener
public class CommandButtonSynchronizer
- extends Object
- implements ActionListener, PropertyChangeListener, Disposable
Synchronize a command with a JFC button. Reflects text, icon and
enabled state of command on button and executes command on action
from button.
- Version:
- $Revision$
- Author:
- Matthew Phillips
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandButtonSynchronizer
public CommandButtonSynchronizer(Command command,
AbstractButton button)
CommandButtonSynchronizer
public CommandButtonSynchronizer(Command command,
AbstractButton button,
boolean showText)
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
updateButton
protected void updateButton()
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange
in interface PropertyChangeListener
Copyright © 2008 Commonwealth of Australia