|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.Command com.mindfusion.diagramming.AddToContainerCmd
public class AddToContainerCmd
Constructor Summary | |
---|---|
protected |
AddToContainerCmd(ContainerNode container,
DiagramNodeList nodes,
boolean interactive)
Intializes a new instance of the AddToContainerCmd class. |
Method Summary | |
---|---|
protected boolean |
adopt(Command command)
Merges adjacent commands in the history queue if they are related. |
void |
execute(boolean undoEnabled)
Carries out the command action. |
ContainerNode |
getContainer()
Gets the container node associated with the command. |
DiagramNodeList |
getNodes()
Gets the item associated with the command. |
protected boolean |
isContainerOf(Command command)
Determines whether a command has been initiated by this command and should be treated as a derivative. |
void |
redo()
Redoes the command. |
void |
undo()
Undoes the command. |
Methods inherited from class com.mindfusion.diagramming.Command |
---|
addSubCmd, getContext, getSubCommands, getTitle, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AddToContainerCmd(ContainerNode container, DiagramNodeList nodes, boolean interactive)
Method Detail |
---|
public void execute(boolean undoEnabled)
execute
in class Command
undoEnabled
- true
if the undo manager is enabled
at this time, otherwise false
.public void undo()
undo
in class Command
public void redo()
redo
in class Command
protected boolean isContainerOf(Command command)
isContainerOf
in class Command
command
- The Command for which to determine whether it is a derivative.
protected boolean adopt(Command command)
adopt
in class Command
command
- The Command that might be adopted by this command.
public ContainerNode getContainer()
public DiagramNodeList getNodes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |