org.esa.beam.framework.ui.command
Class CommandAdapter

java.lang.Object
  extended by org.esa.beam.framework.ui.command.CommandAdapter
All Implemented Interfaces:
EventListener, CommandListener, CommandStateListener

public class CommandAdapter
extends Object
implements CommandListener

The CommandAdapter is a ...

Version:
$Revision$ $Date$
Author:
Norman Fomferra

Constructor Summary
CommandAdapter()
           
 
Method Summary
 void actionPerformed(CommandEvent event)
          Invoked when a command action is performed.
 void updateState(CommandEvent event)
          Called when a command should update its state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandAdapter

public CommandAdapter()
Method Detail

actionPerformed

public void actionPerformed(CommandEvent event)
Invoked when a command action is performed.

Specified by:
actionPerformed in interface CommandListener
Parameters:
event - the command event

updateState

public 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.

Specified by:
updateState in interface CommandStateListener
Parameters:
event - the command event


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