|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICommandMediator
Interface for command mediator object to collect the commands from the colleague objects
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 |
---|
void sendCommand(Command command, boolean toPermanent)
command
- the Command object that to be senttoPermanent
- whether the command object need to be maintained permanentlyvoid sendCommand(Command command)
command
- the Command object that to be sentvoid addObject(java.lang.Object obj)
obj
- the Object that to be addedboolean removeObject(java.lang.Object obj)
obj
- the Object that to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |