|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.commands.Command
pl.edu.agh.cast.backward.command.LabelCommand
public class LabelCommand
Changes value of a single attribute of a given node. Used to change its label (produced by
NodeDirectEditPolicy).
| Constructor Summary | |
|---|---|
LabelCommand(Node node,
String attributeId,
String newValue)
Creates new instance of label command. |
|
| Method Summary | |
|---|---|
void |
execute()
|
void |
undo()
|
| Methods inherited from class org.eclipse.gef.commands.Command |
|---|
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LabelCommand(Node node,
String attributeId,
String newValue)
node - Node to modifyattributeId - id of the node's attribute to modifynewValue - new value of the attribute| Method Detail |
|---|
public void execute()
execute in class org.eclipse.gef.commands.CommandCommand.execute()public void undo()
undo in class org.eclipse.gef.commands.CommandCommand.undo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||