|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.peace_tools.generic.IconTreeNode
public class IconTreeNode
A simple tree node that also permits an icon to be set. This is an custom class that is used in the properties tree to create a tree node with a predefined icon. Setting the icon in the tree node makes developing a suitable cell renderer easier.
PropertiesTreeMaker,
Serialized Form| Field Summary | |
|---|---|
private javax.swing.Icon |
icon
The icon to be used for this mutable tree node. |
private static long |
serialVersionUID
A generated serialization UID (just to keep the compiler happy). |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
IconTreeNode(java.lang.Object object,
javax.swing.Icon icon)
Constructor to create a tree node with an icon. |
|
| Method Summary | |
|---|---|
javax.swing.Icon |
getIcon()
Obtain the icon set for this tree node. |
| 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 |
|---|
private javax.swing.Icon icon
private static final long serialVersionUID
| Constructor Detail |
|---|
public IconTreeNode(java.lang.Object object,
javax.swing.Icon icon)
object - The object to be associated with this tree node. This
value is the user object set in the DefaultMutableTreeNode class.icon - The icon (if any) to be associated with this tree node.
This value can be null.| Method Detail |
|---|
public javax.swing.Icon getIcon()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||