public interface CommandStateListener extends EventListener
ExecCommand
s, ToolCommand
s and
CommandGroup
s.
This listener contains the updateState
method which is called each time a command should check and
eventually update its state. When you create a command (or command group) you provide this listener.
Modifier and Type | Method and Description |
---|---|
void |
updateState(CommandEvent event)
Called when a command should update its state.
|
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.
event
- the command eventCopyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.