|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCommand
com.pnp.xfeature.commands.ExpandCollapseCommand
public class ExpandCollapseCommand
The Command class to colapses a node (hide its subnodes) or expand a node (show its subnodes)
| Constructor Summary | |
|---|---|
ExpandCollapseCommand(FeatureDiagramModel diagram,
FeatureNodeModel node)
Creates command that sets the node to be collpased and its parent |
|
| Method Summary | |
|---|---|
void |
execute()
calls the expandCollapseNode() of the FeatureDiagramModel that checks the vaue of the collapsed
flag of the feature node, based on its value either expands or colapses the node |
void |
redo()
calls execute() method |
void |
undo()
calls the expandCollapseNode() of the FeatureDiagramModel that checks the vaue of the collapsed
flag of the feature node, based on its value either expands or colapses the node |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpandCollapseCommand(FeatureDiagramModel diagram,
FeatureNodeModel node)
diagram - node - | Method Detail |
|---|
public void execute()
collapsed
flag of the feature node, based on its value either expands or colapses the node
org.eclipse.gef.commands.Command#execute()public void redo()
org.eclipse.gef.commands.Command#redo()public void undo()
collapsed
flag of the feature node, based on its value either expands or colapses the node
org.eclipse.gef.commands.Command#execute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||