dsto.dfc.swt.commands
Class CommandButtonProvider
java.lang.Object
dsto.dfc.swt.commands.CommandButtonProvider
- All Implemented Interfaces:
- PropertyChangeListener, EventListener, org.eclipse.swt.widgets.Listener
public class CommandButtonProvider
- extends Object
- implements org.eclipse.swt.widgets.Listener, PropertyChangeListener
Connects and synchronises a button with a command.
- Author:
- Matthew Phillips
- To do:
- Support text on the button: currently requires an icon.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandButtonProvider
public CommandButtonProvider(org.eclipse.swt.widgets.Composite parent,
Command command)
CommandButtonProvider
public CommandButtonProvider(org.eclipse.swt.widgets.Button button,
Command command)
handleEvent
public void handleEvent(org.eclipse.swt.widgets.Event e)
- Specified by:
handleEvent
in interface org.eclipse.swt.widgets.Listener
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange
in interface PropertyChangeListener
Copyright © 2008 Commonwealth of Australia