|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindfusion.diagramming.Command
com.mindfusion.diagramming.RemoveFromContainerCmd
public class RemoveFromContainerCmd
Undoable command that implements removal of nodes from a container.
Constructor Summary | |
---|---|
protected |
RemoveFromContainerCmd(ContainerNode container,
DiagramNode node,
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 group associated with the command. |
DiagramNode |
getNode()
Gets the item associated with the command. |
void |
redo()
Redoes the command. |
void |
undo()
Undoes the command. |
Methods inherited from class com.mindfusion.diagramming.Command |
---|
addSubCmd, getContext, getSubCommands, getTitle, isContainerOf, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RemoveFromContainerCmd(ContainerNode container, DiagramNode node, 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 adopt(Command command)
adopt
in class Command
command
- The Command that might be adopted by this command.
public ContainerNode getContainer()
public DiagramNode getNode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |