|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
net.sf.jlayercheck.util.modeltree.DefaultModelTree
public class DefaultModelTree
ModelTree
,
Serialized FormField Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
DefaultModelTree()
|
Method Summary | |
---|---|
protected TreeNode |
findNode(TreeNode node,
Class<? extends NamedTreeNode> clazz,
String name)
Searches for the first occurence of a node that is an instance of the given class and has the given name. |
ClassNode |
getClassNode(String classname)
Returns the first ClassNode node for the given classname. |
ModuleNode |
getModule(String modulename)
Searches for the ModuleNode with the given name. |
Vector<ModuleNode> |
getModules()
|
ModuleNode |
getUnassignedModule()
Finds and returns the ModuleNode that is named "unassigned" and contains all packages that do not belong to any module. |
void |
merge(ModelTree additionalModelTree)
Merges the given tree into this one. |
void |
sortNodes()
Sorts nodes and sorts the "unassigned" node to the end. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Constructor Detail |
---|
public DefaultModelTree()
Method Detail |
---|
public Vector<ModuleNode> getModules()
getModules
in interface ModelTree
public ModuleNode getModule(String modulename)
modulename
-
public ClassNode getClassNode(String classname)
getClassNode
in interface ModelTree
classname
-
protected TreeNode findNode(TreeNode node, Class<? extends NamedTreeNode> clazz, String name)
node
- root node of the treeclazz
- to search forname
- name that the NamedTreeNode should have
public void sortNodes()
public ModuleNode getUnassignedModule()
getUnassignedModule
in interface ModelTree
public void merge(ModelTree additionalModelTree)
ModelTree
merge
in interface ModelTree
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |