01: /*
02: This library is free software; you can redistribute it and/or
03: modify it under the terms of the GNU General Public
04: License as published by the Free Software Foundation; either
05: version 2 of the license, or (at your option) any later version.
06: */
07:
08: package org.gjt.jclasslib.browser.config.classpath;
09:
10: import javax.swing.tree.DefaultMutableTreeNode;
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 {
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 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: }
|