interfaces
Interface ICommandMediator

All Known Implementing Classes:
CommandContainer

public interface ICommandMediator

Interface for command mediator object to collect the commands from the colleague objects

Version:
1.0, 25-Mar-07
Author:
Prathab
See Also:
CommandColleague

Method Summary
 void addObject(java.lang.Object obj)
          Add the specified object to the mediator object directly without encapsulating it as a command object
 boolean removeObject(java.lang.Object obj)
          Removes the added object in the mediator object
 void sendCommand(Command command)
          Sends the command to the mediator object
 void sendCommand(Command command, boolean toPermanent)
          Sends the command to the mediator object
 

Method Detail

sendCommand

void sendCommand(Command command,
                 boolean toPermanent)
Sends the command to the mediator object

Parameters:
command - the Command object that to be sent
toPermanent - whether the command object need to be maintained permanently

sendCommand

void sendCommand(Command command)
Sends the command to the mediator object

Parameters:
command - the Command object that to be sent

addObject

void addObject(java.lang.Object obj)
Add the specified object to the mediator object directly without encapsulating it as a command object

Parameters:
obj - the Object that to be added

removeObject

boolean removeObject(java.lang.Object obj)
Removes the added object in the mediator object

Parameters:
obj - the Object that to be removed
Returns:
true if object is removed