|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.commands.Command
edu.usc.cse.desi.command.AddComponentCommand
This command is created and executed when an existing Component gets added to a Host or a Super-Component.
| Field Summary | |
private AbstractNodeViewModel |
child
|
private AbstractNodeViewModel |
parent
|
| Fields inherited from class org.eclipse.gef.commands.Command |
|
| Constructor Summary | |
AddComponentCommand()
|
|
| Method Summary | |
boolean |
canExecute()
Returns true if this command can be executed. |
void |
execute()
Execute this command. |
AbstractNodeViewModel |
getChild()
Get the child AbstractViewModel from this command. |
AbstractNodeViewModel |
getParent()
Get the parent AbstractViewModel from this command. |
void |
redo()
Redo this command. |
void |
setChild(AbstractNodeViewModel model)
Set the child AbstractViewModel for this command. |
void |
setParent(AbstractNodeViewModel model)
Set the parent AbstractViewModel for this command. |
void |
undo()
Undo this command. |
| Methods inherited from class org.eclipse.gef.commands.Command |
canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private AbstractNodeViewModel child
private AbstractNodeViewModel parent
| Constructor Detail |
public AddComponentCommand()
| Method Detail |
public void execute()
public boolean canExecute()
public void undo()
public void redo()
public AbstractNodeViewModel getChild()
public AbstractNodeViewModel getParent()
public void setChild(AbstractNodeViewModel model)
model - AbstractNodeViewModelpublic void setParent(AbstractNodeViewModel model)
model - AbstractNodeViewModel
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||