public class Load extends Object implements Command
Constructor and Description |
---|
Load() |
Modifier and Type | Method and Description |
---|---|
void |
doAction(ActionEvent e) |
Set<String> |
getActionNames() |
static boolean |
insertLoadedTree(int id,
HashTree tree)
Inserts the tree into the GUI.
|
static boolean |
insertLoadedTree(int id,
HashTree tree,
boolean merging)
Inserts (or merges) the tree into the GUI.
|
public Set<String> getActionNames()
getActionNames
in interface Command
public void doAction(ActionEvent e)
public static boolean insertLoadedTree(int id, HashTree tree, boolean merging) throws IllegalUserActionException
id
- the id for the ActionEvent that is createdtree
- the tree to loadmerging
- true if the tree is to be merged; false if it is to replace the existing treeIllegalUserActionException
- if the tree cannot be merged at the selected position or the tree is emptypublic static boolean insertLoadedTree(int id, HashTree tree) throws IllegalUserActionException
id
- the id for the ActionEvent that is createdtree
- the tree to loadIllegalUserActionException
- if the tree cannot be merged at the selected position or the tree is emptyCopyright © 1998-2016 Apache Software Foundation. All Rights Reserved.