All Packages Class Hierarchy This Package Previous Next Index
Class vnr.ide.PackageListTreeModel
java.lang.Object
|
+----com.sun.java.swing.tree.DefaultTreeModel
|
+----vnr.util.SortedTreeModel
|
+----vnr.ide.PackageListTreeModel
- public class PackageListTreeModel
- extends SortedTreeModel
A Tree model to handle displaying the packages and classes within them for a project
This class will need to be updated to use the netRexxClasses attribute of the project it's given.
It is a subclass of SortedTreeModel, that is created with for a project
We may need a dmtn subclass to handle toString()
- Author:
- dIon 1998-06-04 REWRITE
-
PackageListTreeModel()
- create a package/class tree with no project
-
PackageListTreeModel(Project)
- create a package/class tree from a project
-
getProject()
-
-
setProject()
- Remove all but the root node and
Build the tree model for the project
-
setProject(Project)
-
-
valueForPathChanged(TreePath, Object)
- called when the user has changed the value for an item
This model is effectively read only, users can't change it
other than by changing the project
PackageListTreeModel
public PackageListTreeModel()
- create a package/class tree with no project
PackageListTreeModel
public PackageListTreeModel(Project prj)
- create a package/class tree from a project
- Parameters:
- prj - the project to build the tree model for
setProject
public void setProject()
- Remove all but the root node and
Build the tree model for the project
- Parameters:
- p - the project to build the tree model for
setProject
public void setProject(Project p)
valueForPathChanged
public void valueForPathChanged(TreePath path,
Object newValue)
- called when the user has changed the value for an item
This model is effectively read only, users can't change it
other than by changing the project
- Overrides:
- valueForPathChanged in class DefaultTreeModel
getProject
public Project getProject()
All Packages Class Hierarchy This Package Previous Next Index