public class IconTreeNode extends DefaultMutableTreeNode
Modifier and Type | Field and Description |
---|---|
protected Icon |
icon
The icon that has to be used for this TreeNode.
|
private static long |
serialVersionUID
A Serial Version UID.
|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
IconTreeNode(String icon)
Constructs an IconTreeNode.
|
IconTreeNode(String icon,
Object userobject)
Constructs an IconTreeNode.
|
Modifier and Type | Method and Description |
---|---|
Icon |
getIcon()
Getter for the icon.
|
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
protected Icon icon
private static final long serialVersionUID
public IconTreeNode(String icon)
icon
- the filename of the icon to use for this node.public Icon getIcon()