public class IconTreeNode extends DefaultMutableTreeNode
| Modifier and Type | Field and Description |
|---|---|
protected Icon |
icon
The icon that has to be used for this TreeNode.
|
allowsChildren, EMPTY_ENUMERATION, children, 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, clone, depthFirstEnumeration, getAllowsChildren, getDepth, getFirstChild, getFirstLeaf, getChildAfter, getChildAt, getChildBefore, getChildCount, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, children, insert, isLeaf, isNodeAncestor, isNodeDescendant, isNodeChild, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringprotected Icon icon
public IconTreeNode(String icon)
icon - the filename of the icon to use for this node.public Icon getIcon()
Copyright © 2015. All rights reserved.