Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## info.bioinfweb.treegraph.document.undo
Class NodeBranchDataBackup

    java.lang.Object
      info.bioinfweb.treegraph.document.undo.NodeBranchDataBackup

    public class NodeBranchDataBackup

extends Object

Used to backup a node/branch data column beforen an edit operation.

Since:
  2.0.24
Author:
  Ben Stöver

Field Summary
`private NodeBranchDataAdapter` | `adapter`
`private List<TextElementData>` | `list`

Constructor Summary
`NodeBranchDataBackup(NodeBranchDataAdapter adapter, Node root)`

Method Summary
`private void` | `backupSubtree(Node root)`
`void` | `restore(Node root)` Restores the previous values of the specified column if it previously exsited.
`private int` | `restoreSubtree(Node root, int index)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### adapter

    private NodeBranchDataAdapter adapter

### list

    private List<TextElementData> list

Constructor Detail

### NodeBranchDataBackup

    public NodeBranchDataBackup(NodeBranchDataAdapter adapter,
                                Node root)

Method Detail

### backupSubtree

    private void backupSubtree(Node root)

### restoreSubtree

    private int restoreSubtree(Node root,
                               int index)

### restore

    public void restore(Node root)

  Restores the previous values of the specified column if it previously exsited. Otherwise the specified column is deleted.

  Parameters:
    `root` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD