com.imagero.gui.swing.tree.node
Class HTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bycom.imagero.gui.swing.tree.node.DMTreeNode
          extended bycom.imagero.gui.swing.tree.node.HTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
DummyNode

public class HTreeNode
extends DMTreeNode

HTreeNode delegates most work to Handler.

See Also:
Serialized Form

Field Summary
static StringComparator stringComparator
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
HTreeNode(java.lang.Object userObject)
           
 
Method Summary
 boolean getAllowsChildren()
          Returns true if this node is allowed to have children.
 Handler getHandler()
           
 boolean isLeaf()
          Returns true if this node has no children.
 boolean isPopulated()
           
 void populate(boolean refreshNodes)
           
 void repopulate(boolean refreshNodes)
           
 void setHandler(Handler handler)
           
 void setPopulated(boolean populated)
           
 void sort()
           
 java.lang.String toString()
          Returns the result of sending toString() to this node's user object, or null if this node has no user object.
 
Methods inherited from class com.imagero.gui.swing.tree.node.DMTreeNode
add, add, childIndex, createNode, sort
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, 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, 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
 

Field Detail

stringComparator

public static final StringComparator stringComparator
Constructor Detail

HTreeNode

public HTreeNode(java.lang.Object userObject)
Method Detail

getAllowsChildren

public boolean getAllowsChildren()
Description copied from class: javax.swing.tree.DefaultMutableTreeNode
Returns true if this node is allowed to have children.

Returns:
true if this node allows children, else false

getHandler

public Handler getHandler()

isLeaf

public boolean isLeaf()
Description copied from class: javax.swing.tree.DefaultMutableTreeNode
Returns true if this node has no children. To distinguish between nodes that have no children and nodes that cannot have children (e.g. to distinguish files from empty directories), use this method in conjunction with getAllowsChildren

Returns:
true if this node has no children
See Also:
DefaultMutableTreeNode.getAllowsChildren()

isPopulated

public boolean isPopulated()

populate

public void populate(boolean refreshNodes)
              throws java.io.IOException
Throws:
java.io.IOException

repopulate

public void repopulate(boolean refreshNodes)
                throws java.io.IOException
Throws:
java.io.IOException

setHandler

public void setHandler(Handler handler)

setPopulated

public void setPopulated(boolean populated)

sort

public void sort()

toString

public java.lang.String toString()
Description copied from class: javax.swing.tree.DefaultMutableTreeNode
Returns the result of sending toString() to this node's user object, or null if this node has no user object.

See Also:
DefaultMutableTreeNode.getUserObject()