|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclasses.shapes.commands.CommandContainer
public class CommandContainer
Holds the Command objects sent from other objects
ICommandMediator
Constructor Summary | |
---|---|
CommandContainer()
|
Method Summary | |
---|---|
void |
addObject(java.lang.Object obj)
Stores the objects which are interested to collect the commands automatically |
void |
clearPermanentCommandList()
Clears the permanent command list |
void |
clearTempCommandList()
Clears the temporary command list |
java.util.ArrayList |
getObjectList()
Returns command object list |
java.util.ArrayList |
getPermanentCommandList()
Returns permanent command list |
java.util.ArrayList |
getTemporaryCommandList()
Returns temporary command list |
boolean |
removeObject(java.lang.Object obj)
Removes the object from the object list |
void |
sendCommand(Command command)
Stores the commands in a temporary list |
void |
sendCommand(Command command,
boolean toPermanent)
Stores the commands in the list |
void |
setObjectList(java.util.ArrayList objList)
Sets the object list with command list |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandContainer()
Method Detail |
---|
public void sendCommand(Command command, boolean toPermanent)
sendCommand
in interface ICommandMediator
command
- command to be storedtoPermanent
- if true the command is added to permanent listICommandMediator.sendCommand(types.Command)
public void sendCommand(Command command)
sendCommand
in interface ICommandMediator
command
- command to be storedICommandMediator.sendCommand(types.Command)
public void addObject(java.lang.Object obj)
addObject
in interface ICommandMediator
obj
- object to be addedpublic boolean removeObject(java.lang.Object obj)
removeObject
in interface ICommandMediator
obj
- object to be removed
public void setObjectList(java.util.ArrayList objList)
public java.util.ArrayList getObjectList()
public void clearTempCommandList()
public void clearPermanentCommandList()
public java.util.ArrayList getTemporaryCommandList()
public java.util.ArrayList getPermanentCommandList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |