org.equanda.util.swing.tree
Class IconNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.equanda.util.swing.tree.IconNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class IconNode
extends DefaultMutableTreeNode

Node for a JTree object which can have a specific icon

Author:
Joachim Van der Auwera
See Also:
Serialized Form

Field Summary
protected  Icon icon
           
protected  String iconName
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
IconNode()
           
IconNode(Object userObject)
           
IconNode(Object userObject, boolean allowsChildren, Icon icon)
           
 
Method Summary
 Icon getIcon()
           
 String getIconName()
           
 void setIcon(Icon icon)
           
 void setIconName(String name)
           
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

icon

protected Icon icon

iconName

protected String iconName
Constructor Detail

IconNode

public IconNode()

IconNode

public IconNode(Object userObject)

IconNode

public IconNode(Object userObject,
                boolean allowsChildren,
                Icon icon)
Method Detail

setIcon

public void setIcon(Icon icon)

getIcon

public Icon getIcon()

getIconName

public String getIconName()

setIconName

public void setIconName(String name)


Copyright © 2007-2009. All Rights Reserved.