public class RemoveFromContainerCmd extends Command
Modifier | Constructor and Description |
---|---|
protected |
RemoveFromContainerCmd(ContainerNode container,
DiagramNode node,
boolean interactive)
Intializes a new instance of the AddToContainerCmd class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addSubCmd, getContext, getSubCommands, getTitle, isContainerOf, setTitle
protected RemoveFromContainerCmd(ContainerNode container, DiagramNode node, boolean interactive)
public void execute(boolean undoEnabled)
protected boolean adopt(Command command)
public ContainerNode getContainer()
public DiagramNode getNode()