net.sf.jdiskcatalog.model
Class NodeImpl

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by net.sf.jdiskcatalog.model.NodeImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode, Node

public class NodeImpl
extends javax.swing.tree.DefaultMutableTreeNode
implements Node

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
NodeImpl(NodeInfo nodeInfo)
           
NodeImpl(java.lang.String name, NodeInfo.Type type)
           
 
Method Summary
 void add(Node node)
           
 java.util.Enumeration children()
           
 Node getChild(java.lang.String name)
           
 java.util.List<Node> getChildren()
           
 NodeInfo getNodeInfo()
           
 Node getParentNode()
           
 boolean hasChildren()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, 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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeImpl

public NodeImpl(java.lang.String name,
                NodeInfo.Type type)

NodeImpl

public NodeImpl(NodeInfo nodeInfo)
Method Detail

getNodeInfo

public NodeInfo getNodeInfo()
Specified by:
getNodeInfo in interface Node

add

public void add(Node node)
Specified by:
add in interface Node

children

public java.util.Enumeration children()
Specified by:
children in interface javax.swing.tree.TreeNode
Overrides:
children in class javax.swing.tree.DefaultMutableTreeNode

getChildren

public java.util.List<Node> getChildren()
Specified by:
getChildren in interface Node

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface Node

getParentNode

public Node getParentNode()
Specified by:
getParentNode in interface Node

getChild

public Node getChild(java.lang.String name)
Specified by:
getChild in interface Node


Copyright © 2007. All Rights Reserved.