KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > browser > config > classpath > ClassTreeNode


1 /*
2     This library is free software; you can redistribute it and/or
3     modify it under the terms of the GNU General Public
4     License as published by the Free Software Foundation; either
5     version 2 of the license, or (at your option) any later version.
6 */

7
8 package org.gjt.jclasslib.browser.config.classpath;
9
10 import javax.swing.tree.DefaultMutableTreeNode JavaDoc;
11
12 /**
13     Tree node for the tree in the <tt>ClasspathBrowser</tt> dialog.
14
15     @author <a HREF="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
16     @version $Revision: 1.1 $ $Date: 2003/08/18 08:10:15 $
17 */

18 public class ClassTreeNode extends DefaultMutableTreeNode JavaDoc {
19
20     private boolean packageNode;
21
22     /**
23      * Constructor for the root node.
24      */

25     public ClassTreeNode() {
26     }
27
28     /**
29      * Constructor for class and package nodes.
30      * @param name the name of the entry.
31      * @param packageNode whether the node is a package node or not.
32      */

33     public ClassTreeNode(String JavaDoc name, boolean packageNode) {
34         super(name);
35         this.packageNode = packageNode;
36     }
37
38     /**
39      * Return whether the node is a package node or not.
40      * @return the value.
41      */

42     public boolean isPackageNode() {
43         return packageNode;
44     }
45 }
46
Popular Tags