public class CommandAdapter extends Object implements CommandListener
CommandAdapter
is a ...Constructor and Description |
---|
CommandAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(CommandEvent event)
Invoked when a command action is performed.
|
void |
updateState(CommandEvent event)
Called when a command should update its state.
|
public void actionPerformed(CommandEvent event)
actionPerformed
in interface CommandListener
event
- the command eventpublic void updateState(CommandEvent event)
This method can contain some code which analyzes the underlying element and makes a decision whether this item or group should be made visible/invisible or enabled/disabled etc.
updateState
in interface CommandStateListener
event
- the command eventCopyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.