Class CustomTreeNode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

    public class CustomTreeNode
    extends javax.swing.tree.DefaultMutableTreeNode
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      javax.swing.Icon icon  
      java.lang.Object tag  
      java.lang.String text  
      • Fields inherited from class javax.swing.tree.DefaultMutableTreeNode

        allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomTreeNode​(java.lang.String text)  
      CustomTreeNode​(java.lang.String text, java.lang.Object obj)  
      CustomTreeNode​(java.lang.String text, java.lang.Object obj, javax.swing.Icon icon)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.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
    • Field Detail

      • text

        public java.lang.String text
      • tag

        public java.lang.Object tag
      • icon

        public javax.swing.Icon icon
    • Constructor Detail

      • CustomTreeNode

        public CustomTreeNode​(java.lang.String text)
      • CustomTreeNode

        public CustomTreeNode​(java.lang.String text,
                              java.lang.Object obj)
      • CustomTreeNode

        public CustomTreeNode​(java.lang.String text,
                              java.lang.Object obj,
                              javax.swing.Icon icon)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class javax.swing.tree.DefaultMutableTreeNode