org.esa.beam.framework.ui.command
Interface CommandStateListener

All Superinterfaces:
EventListener
All Known Subinterfaces:
CommandListener
All Known Implementing Classes:
CommandAdapter

public interface CommandStateListener
extends EventListener

The listener for receiving command events from ExecCommands, ToolCommands and CommandGroups.

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.


Method Summary
 void updateState(CommandEvent event)
          Called when a command should update its state.
 

Method Detail

updateState

void updateState(CommandEvent event)
Called when a command should update its state.

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.

Parameters:
event - the command event


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.