net.sf.jlayercheck.util.modeltree
Class DefaultPackageNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by net.sf.jlayercheck.util.modeltree.DefaultPackageNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode, NamedTreeNode, PackageNode
Direct Known Subclasses:
DependentPackageNode

public class DefaultPackageNode
extends DefaultMutableTreeNode
implements PackageNode

Author:
webmaster@earth3d.org
See Also:
PackageNode, Serialized Form

Field Summary
protected  String packagename
           
protected  boolean unassignedPackage
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
DefaultPackageNode()
           
DefaultPackageNode(String packagename)
           
 
Method Summary
 void add(ClassNode classnode)
          Adds the given ClassNode as child.
 ClassNode getClass(String name)
          Retrieves the ClassNode with the given name.
 Vector<ClassNode> getClasses()
          Returns the classes in this package.
 String getName()
           
 String getPackagename()
          Returns the name of this package.
 boolean isUnassignedPackage()
          Returns true if this package is the "unassigned" package for excluded classes.
 void setUnassignedPackage(boolean unassignedPackage)
           
 String toString()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Field Detail

packagename

protected String packagename

unassignedPackage

protected boolean unassignedPackage
Constructor Detail

DefaultPackageNode

public DefaultPackageNode(String packagename)

DefaultPackageNode

public DefaultPackageNode()
Method Detail

getClasses

public Vector<ClassNode> getClasses()
Description copied from interface: PackageNode
Returns the classes in this package.

Specified by:
getClasses in interface PackageNode
Returns:
vector of classes

getPackagename

public String getPackagename()
Description copied from interface: PackageNode
Returns the name of this package.

Specified by:
getPackagename in interface PackageNode
Returns:
packagename

toString

public String toString()
Overrides:
toString in class DefaultMutableTreeNode

getName

public String getName()
Specified by:
getName in interface NamedTreeNode

add

public void add(ClassNode classnode)
Description copied from interface: PackageNode
Adds the given ClassNode as child.

Specified by:
add in interface PackageNode

getClass

public ClassNode getClass(String name)
Description copied from interface: PackageNode
Retrieves the ClassNode with the given name.

Specified by:
getClass in interface PackageNode
Returns:
ClassNode

isUnassignedPackage

public boolean isUnassignedPackage()
Returns true if this package is the "unassigned" package for excluded classes.

Specified by:
isUnassignedPackage in interface PackageNode
Returns:

setUnassignedPackage

public void setUnassignedPackage(boolean unassignedPackage)


Copyright © 2007. All Rights Reserved.