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

All Known Implementing Classes:
AbstractCommandAdapter

public interface CommandAdapter

An interface for adapter classes that adapt something to execute a command.

Version:
1.$Revision$
Author:
Thomas Wolf

Method Summary
 Command getCommand()
           
 java.lang.String getName()
          Return the name of the CommandAdapter.
 void setCommand(Command command)
          Sets (or resets if command==null) the Command this adapter adapts.
 void setName(java.lang.String name)
          Set the name of the CommandAdapter.
 

Method Detail

getName

public java.lang.String getName()
Return the name of the CommandAdapter.

Returns:
the name of the CommandAdapter (never null)

setName

public void setName(java.lang.String name)
Set the name of the CommandAdapter.

Parameters:
name - the name of the CommandAdapter (not null)
Throws:
java.lang.IllegalArgumentException - if name is null

getCommand

public Command getCommand()
Returns:
the Command to adapt, or null, if currently no Command is adapted.

setCommand

public void setCommand(Command command)
Sets (or resets if command==null) the Command this adapter adapts.

Parameters:
command - the Command we act upon or null