com.sdm.quasar.client.core.commands
Interface CommandManager

All Known Implementing Classes:
CommandManagerFeature, RunnableCommandManager

public interface CommandManager

An interface that prvides 'commandes', that have an enabled BooleanState and can be executed. Additional the CommandManager provides a processing BooleanState.

Version:
1.0
Author:
Thomas Wolf, Martin Haft

Method Summary
 Command getCommand(java.lang.String commandId)
          Get a Command from the CommandManager
 boolean hasCommand(java.lang.String commandId)
          Checks, if the CommandManager provides a command with a given id
 

Method Detail

hasCommand

public boolean hasCommand(java.lang.String commandId)
Checks, if the CommandManager provides a command with a given id

Parameters:
commandId - the id of a command
Returns:
true, if the CommandManager provides a command with given id

getCommand

public Command getCommand(java.lang.String commandId)
Get a Command from the CommandManager

Parameters:
commandId - the id of a command
Returns:
the command with the given id,
Throws:
java.lang.IllegalArgumentException - if the CommandManager does not provide a command with given id; check first with hasCommand(String)