| Modifier and Type | Field and Description |
|---|---|
| private final GroupTreeNode | m_groupRoot
A backup of the groups before the modification |
| private final List | m_modifiedSubtree
This holds the new subtree (the root's modified children) to allow redo. |
| private final String | |
| private final GroupTreeNode | |
| private final List | m_subtreeRootPath
The path to the global groups root node |
| Access | Constructor and Description |
|---|---|
| public | UndoableModifySubtree(GroupTreeNodeViewModel groupRoot, GroupTreeNodeViewModel
The root node of the subtree that was modified (this node may not be modified, it is just used as a convenience handle). subtree, String name)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | getPresentationName()
Overrides javax. Implements javax. This default implementation returns "". |
| public void | redo()
Overrides javax. Implements javax. Throws |
| public void | undo()
Overrides javax. Implements javax. Throws |
| m_groupRoot | back to summary |
|---|---|
| private final GroupTreeNode m_groupRoot A backup of the groups before the modification | |
| m_modifiedSubtree | back to summary |
|---|---|
| private final List<GroupTreeNode> m_modifiedSubtree This holds the new subtree (the root's modified children) to allow redo. | |
| m_name | back to summary |
|---|---|
| private final String m_name | |
| m_subtreeBackup | back to summary |
|---|---|
| private final GroupTreeNode m_subtreeBackup | |
| m_subtreeRootPath | back to summary |
|---|---|
| private final List<Integer> m_subtreeRootPath The path to the global groups root node | |
| UndoableModifySubtree | back to summary |
|---|---|
public UndoableModifySubtree(GroupTreeNodeViewModel groupRoot, GroupTreeNodeViewModel subtree, String name)
| |
| getPresentationName | back to summary |
|---|---|
| public String getPresentationName() Overrides javax. Implements javax. Doc from javax. This default implementation returns "". Used by
| |
| redo | back to summary |
|---|---|
| public void redo() Overrides javax. Implements javax. Doc from javax. Throws
| |
| undo | back to summary |
|---|---|
| public void undo() Overrides javax. Implements javax. Doc from javax. Throws
| |