Constructor and Description |
---|
AddComponentsCommand(java.lang.String name,
java.util.LinkedList<? extends ModelComponent> comps,
MutableCompositeComponent<?> parent) |
AddComponentsCommand(java.lang.String name,
java.util.LinkedList<ModelComponent> comps,
java.util.LinkedList<MutableCompositeComponent<?>> parents) |
AddComponentsCommand(java.lang.String name,
ModelComponent comp,
MutableCompositeComponent<?> parent) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes this command.
|
java.util.LinkedList<ModelComponent> |
getComponents()
Returns the components added by this command.
|
java.lang.String |
getName()
Gets the name associated with this command.
|
void |
undo()
Undoes the result of executing this command.
|
public AddComponentsCommand(java.lang.String name, java.util.LinkedList<ModelComponent> comps, java.util.LinkedList<MutableCompositeComponent<?>> parents)
public AddComponentsCommand(java.lang.String name, java.util.LinkedList<? extends ModelComponent> comps, MutableCompositeComponent<?> parent)
public AddComponentsCommand(java.lang.String name, ModelComponent comp, MutableCompositeComponent<?> parent)
public void execute()
Command
public void undo()
Command
public java.lang.String getName()
Command
public java.util.LinkedList<ModelComponent> getComponents()