Constructor and Description |
---|
RemoveAddCommand(java.lang.String name,
java.util.Collection<? extends ModelComponent> removeList,
java.util.Collection<? extends ModelComponent> addList,
java.util.Collection<MutableCompositeComponent<?>> addParents) |
RemoveAddCommand(java.lang.String name,
java.util.Collection<? extends ModelComponent> removeList,
java.util.Collection<? extends ModelComponent> addList,
MutableCompositeComponent<?> addParent) |
RemoveAddCommand(java.lang.String name,
ModelComponent removeComp,
ModelComponent addComp,
MutableCompositeComponent<?> addParent) |
Modifier and Type | Method and Description |
---|---|
static RemoveAddCommand |
createAddCommand(java.lang.String name,
java.util.Collection<? extends ModelComponent> addList,
java.util.Collection<MutableCompositeComponent<?>> addParents) |
static RemoveAddCommand |
createAddCommand(java.lang.String name,
java.util.Collection<? extends ModelComponent> addList,
MutableCompositeComponent<?> addParent) |
static RemoveAddCommand |
createRemoveAddCommand(java.lang.String name,
java.util.Collection<? extends ModelComponent> removeList,
java.util.Collection<? extends ModelComponent> addList,
java.util.Collection<MutableCompositeComponent<?>> addParents) |
static RemoveAddCommand |
createRemoveAddCommand(java.lang.String name,
java.util.Collection<? extends ModelComponent> removeList,
java.util.Collection<? extends ModelComponent> addList,
MutableCompositeComponent<?> addParent) |
static RemoveAddCommand |
createRemoveAddCommand(java.lang.String name,
ModelComponent removeComp,
ModelComponent addComp,
MutableCompositeComponent<?> addParent) |
static RemoveAddCommand |
createRemoveCommand(java.lang.String name,
java.util.Collection<? extends ModelComponent> removeList) |
static RemoveAddCommand |
createRemoveCommand(java.lang.String name,
ModelComponent removeComp) |
void |
execute()
Executes this command.
|
java.lang.String |
getName()
Gets the name associated with this command.
|
void |
undo()
Undoes the result of executing this command.
|
public RemoveAddCommand(java.lang.String name, java.util.Collection<? extends ModelComponent> removeList, java.util.Collection<? extends ModelComponent> addList, java.util.Collection<MutableCompositeComponent<?>> addParents)
public RemoveAddCommand(java.lang.String name, java.util.Collection<? extends ModelComponent> removeList, java.util.Collection<? extends ModelComponent> addList, MutableCompositeComponent<?> addParent)
public RemoveAddCommand(java.lang.String name, ModelComponent removeComp, ModelComponent addComp, MutableCompositeComponent<?> addParent)
public static RemoveAddCommand createRemoveCommand(java.lang.String name, java.util.Collection<? extends ModelComponent> removeList)
public static RemoveAddCommand createRemoveCommand(java.lang.String name, ModelComponent removeComp)
public static RemoveAddCommand createAddCommand(java.lang.String name, java.util.Collection<? extends ModelComponent> addList, java.util.Collection<MutableCompositeComponent<?>> addParents)
public static RemoveAddCommand createAddCommand(java.lang.String name, java.util.Collection<? extends ModelComponent> addList, MutableCompositeComponent<?> addParent)
public static RemoveAddCommand createRemoveAddCommand(java.lang.String name, java.util.Collection<? extends ModelComponent> removeList, java.util.Collection<? extends ModelComponent> addList, java.util.Collection<MutableCompositeComponent<?>> addParents)
public static RemoveAddCommand createRemoveAddCommand(java.lang.String name, java.util.Collection<? extends ModelComponent> removeList, java.util.Collection<? extends ModelComponent> addList, MutableCompositeComponent<?> addParent)
public static RemoveAddCommand createRemoveAddCommand(java.lang.String name, ModelComponent removeComp, ModelComponent addComp, MutableCompositeComponent<?> addParent)
public void execute()
Command
public void undo()
Command