|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindfusion.diagramming.Command
com.mindfusion.diagramming.ExpandTreeViewItemCmd
public class ExpandTreeViewItemCmd
Implements support for undo of TreeViewItem
collapse/expand operations.
Constructor Summary | |
---|---|
ExpandTreeViewItemCmd(TreeViewNode node,
TreeViewItem item)
Initializes a new instance of the ExpandTreeViewItemCmd class. |
Method Summary | |
---|---|
void |
execute(boolean undoEnabled)
Command.execute(boolean) override. |
TreeViewItem |
item()
Gets the TreeViewItem that has been collapsed or expanded. |
void |
redo()
Command.redo() override. |
void |
undo()
Command.undo() override. |
Methods inherited from class com.mindfusion.diagramming.Command |
---|
addSubCmd, adopt, getContext, getSubCommands, getTitle, isContainerOf, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpandTreeViewItemCmd(TreeViewNode node, TreeViewItem item)
ExpandTreeViewItemCmd
class.
node
- The parent TreeViewNode
.item
- The TreeViewItem
that has been collapsed or expanded.Method Detail |
---|
public void execute(boolean undoEnabled)
Command.execute(boolean)
override.
execute
in class Command
undoEnabled
- Specifies whether undo/redo is enabled. If undo is disabled,
the command won't be saved in undo history and will never be
called to undo or redo itself. In such case you might choose
to skip some housekeeping operations such as saving state
variables for later undo/redo.public void undo()
Command.undo()
override.
undo
in class Command
public void redo()
Command.redo()
override.
redo
in class Command
public TreeViewItem item()
TreeViewItem
that has been collapsed or expanded.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |