org.jhotdraw.contrib
Interface CommandHolder

All Known Implementing Classes:
CommandCheckBoxMenuItem, CommandMenuItem

public interface CommandHolder

CommandHolder defines the interface for wrapper objects holding a Command, like menu items or toolbar tools.

Version:
<$CURRENT_VERSION$>
Author:
Eduardo Francos - InContext

Method Summary
 Command getCommand()
          Gets the command of the CommandHolder object
 void setCommand(Command newCommand)
          Sets the command of the CommandHolder object
 

Method Detail

getCommand

Command getCommand()
Gets the command of the CommandHolder object

Returns:
The command value

setCommand

void setCommand(Command newCommand)
Sets the command of the CommandHolder object

Parameters:
newCommand - The new command value