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


public interface Command

This is a Command due to the Command (or Action) Pattern enhanced by two States indicating whether the command is currently executabe or currently processing.

Version:
1.0
Author:
Thomas Wolf

Method Summary
 void execute()
          Executes this Command.
 BooleanState getEnabledBooleanState()
           
 java.lang.String getId()
           
 BooleanState getProcessingBooleanState()
           
 

Method Detail

getId

public java.lang.String getId()
Returns:
the ID of the command

getEnabledBooleanState

public BooleanState getEnabledBooleanState()
Returns:
a BooleanState that ist true, when the Command is executable, and false otherwise.

getProcessingBooleanState

public BooleanState getProcessingBooleanState()
Returns:
a BooleanState that is true, while the Command is processing, otherwise false.

execute

public void execute()
Executes this Command.