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

Constructor Index

 o PackageListTreeModel()
create a package/class tree with no project
 o PackageListTreeModel(Project)
create a package/class tree from a project

Method Index

 o getProject()
 o setProject()
Remove all but the root node and Build the tree model for the project
 o setProject(Project)
 o 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

Constructors

 o PackageListTreeModel
 public PackageListTreeModel()
create a package/class tree with no project

 o PackageListTreeModel
 public PackageListTreeModel(Project prj)
create a package/class tree from a project

Parameters:
prj - the project to build the tree model for

Methods

 o 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
 o setProject
 public void setProject(Project p)
 o 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
 o getProject
 public Project getProject()

All Packages  Class Hierarchy  This Package  Previous  Next  Index