info.bioinfweb.treegraph.document.undo.file
Class ImportTableEdit
java.lang.Object
info.bioinfweb.treegraph.document.undo.DocumentEdit
info.bioinfweb.treegraph.document.undo.file.ImportTableEdit
- All Implemented Interfaces:
- UndoableEdit
public class ImportTableEdit
- extends DocumentEdit
- Since:
- 2.0.24
- Author:
- Ben Stöver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
private String[][] data
adapters
private NodeBranchDataAdapter[] adapters
backups
private NodeBranchDataBackup[] backups
ImportTableEdit
public ImportTableEdit(Document document,
String[][] data,
NodeBranchDataAdapter[] adapters)
createBackups
private NodeBranchDataBackup[] createBackups()
importData
public boolean importData(NodeBranchDataAdapter[] adapters,
String[][] data)
- Parameters:
adapters
- data
-
- Returns:
true
, if all data has been imported, false
, if
one or more unique node name was not found in the current tree
redo
public void redo()
throws CannotRedoException
- Specified by:
redo
in interface UndoableEdit
- Overrides:
redo
in class DocumentEdit
- Throws:
CannotRedoException
undo
public void undo()
throws CannotUndoException
- Specified by:
undo
in interface UndoableEdit
- Overrides:
undo
in class DocumentEdit
- Throws:
CannotUndoException
getPresentationName
public String getPresentationName()