au.edu.swin.synergy.plugin.workspace
Class BWorkspaceTreeModel
java.lang.Object
|
+--au.edu.swin.synergy.lib.BTreeModel
|
+--au.edu.swin.synergy.plugin.workspace.BWorkspaceTreeModel
- public class BWorkspaceTreeModel
- extends BTreeModel
- implements BTreeNode, BSaveable, TreeModelListener
The tree model for the workspace tree
- Author:
- Matthew Evans
Methods inherited from class au.edu.swin.synergy.lib.BTreeModel |
add,
addBranch,
addTreeModelListener,
fireInserted,
fireNodesInserted,
fireNodesRemoved,
fireRemoved,
fireStructureChanged,
getBranches,
getChild,
getChildCount,
getIndexOfChild,
getRoot,
isLeaf,
nodeWasInserted,
nodeWasRemoved,
remove,
removeAllChildren,
removeBranch,
removeTreeModelListener,
toString,
valueForPathChanged |
BWorkspaceTreeModel
public BWorkspaceTreeModel(String name)
- Creates a workspace tree model, and gives it a name
- Parameters:
name
- the name of the model
BWorkspaceTreeModel
public BWorkspaceTreeModel()
- Default constructor for BSaveable
getProjectBranches
public Vector getProjectBranches()
getName
public String getName()
- Specified by:
- getName in interface BTreeNode
- Overrides:
- getName in class BTreeModel
setName
public void setName(String name)
- Specified by:
- setName in interface BTreeNode
- Overrides:
- setName in class BTreeModel
isLeaf
public boolean isLeaf()
- Specified by:
- isLeaf in interface BTreeNode
- Overrides:
- isLeaf in class BTreeModel
getChildAt
public Object getChildAt(int index)
- Specified by:
- getChildAt in interface BTreeNode
- Overrides:
- getChildAt in class BTreeModel
getChildCount
public int getChildCount()
- Specified by:
- getChildCount in interface BTreeNode
- Overrides:
- getChildCount in class BTreeModel
getParent
public Object getParent()
- Specified by:
- getParent in interface BTreeNode
- Overrides:
- getParent in class BTreeModel
getIndexOf
public int getIndexOf(Object node)
- Specified by:
- getIndexOf in interface BTreeNode
- Overrides:
- getIndexOf in class BTreeModel
setParent
public void setParent(Object parent)
- Specified by:
- setParent in interface BTreeNode
- Overrides:
- setParent in class BTreeModel
getLoadList
public BStringList getLoadList()
load
public boolean load(BDataFile file)
- Specified by:
- load in interface BSaveable
save
public boolean save(BDataFile file)
- Specified by:
- save in interface BSaveable
treeNodesChanged
public void treeNodesChanged(TreeModelEvent event)
- Specified by:
- treeNodesChanged in interface TreeModelListener
treeNodesInserted
public void treeNodesInserted(TreeModelEvent event)
- Specified by:
- treeNodesInserted in interface TreeModelListener
treeNodesRemoved
public void treeNodesRemoved(TreeModelEvent event)
- Specified by:
- treeNodesRemoved in interface TreeModelListener
treeStructureChanged
public void treeStructureChanged(TreeModelEvent event)
- Specified by:
- treeStructureChanged in interface TreeModelListener
hasBeenModified
public boolean hasBeenModified()
setModified
public void setModified(boolean modified)