public class DefaultNode
extends javax.swing.tree.DefaultMutableTreeNode
implements java.beans.PropertyChangeListener
Constructor and Description |
---|
DefaultNode(java.lang.String name,
java.lang.String toolTipText,
java.lang.Object value,
java.beans.PropertyEditor propertyEditor)
The constructor initializes the members of this node.
|
Modifier and Type | Method and Description |
---|---|
java.beans.PropertyEditor |
getEditor()
this returns the property editor that was provided for this object.
|
java.lang.String |
getName()
gets the name of the parameter value represented by this node
|
java.lang.String |
getToolTipText()
getter for the tooltip text
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This implements the PropertyChangeListener for this node that gets
registered with its Editor.
|
void |
setUserObject(java.lang.Object o)
this is a simple filter for the setUserObject method.
|
java.lang.String |
toString()
ToString method simply prints out the user object toString for this node
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, 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
public DefaultNode(java.lang.String name, java.lang.String toolTipText, java.lang.Object value, java.beans.PropertyEditor propertyEditor)
name
- the name of the value represented by this nodetoolTipText
- the tool tip text to be displayedvalue
- the intial valuepropertyEditor
- the editor provided for this nodepublic java.beans.PropertyEditor getEditor()
public java.lang.String getToolTipText()
public java.lang.String getName()
public void setUserObject(java.lang.Object o)
setUserObject
in interface javax.swing.tree.MutableTreeNode
setUserObject
in class javax.swing.tree.DefaultMutableTreeNode
o
- the user objectpublic java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- the event