public class PropertyNode
extends javax.swing.tree.DefaultMutableTreeNode
Constructor and Description |
---|
PropertyNode(javax.swing.JTree tree,
AddModelsPanel panel,
java.lang.String name,
java.lang.String toolTipText,
java.lang.Object value,
java.beans.PropertyEditor pe)
The constructor initialiazes the member variables of this node,
Note that the "value" of this generic object is stored as the treeNode
user object.
|
Modifier and Type | Method and Description |
---|---|
void |
addEditorNodes(java.lang.String name,
java.lang.String toolTipText)
This method figures out what kind of parameter type this node
represents and then creates the appropriate set of child nodes
for editing.
|
boolean |
canDeselect(javax.swing.tree.DefaultMutableTreeNode node)
informs a requesting child node whether or not it has permission
to be deselected.
|
boolean |
canSelect(NumberNode node)
This method informs a child number node whether or not it is
allowed to be selected.
|
java.util.Vector |
getAllValues()
This method gets the range of values as specified by the
child editor nodes.
|
java.lang.String |
getName()
getter for the name to be displayed for this node
|
java.beans.PropertyEditor |
getPropertyEditor()
this returns the property editor that was provided for this object.
|
java.lang.String |
getToolTipText()
getter for the tooltip text
|
java.lang.String |
toString()
returns a string representation
|
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, setUserObject
public PropertyNode(javax.swing.JTree tree, AddModelsPanel panel, java.lang.String name, java.lang.String toolTipText, java.lang.Object value, java.beans.PropertyEditor pe)
tree
- the tree to usepanel
- the pabelname
- the nametoolTipText
- the tooltipvalue
- the actual valuepe
- the property editorpublic java.lang.String getToolTipText()
public java.lang.String getName()
public java.beans.PropertyEditor getPropertyEditor()
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public void addEditorNodes(java.lang.String name, java.lang.String toolTipText)
name
- the nametoolTipText
- the tooltippublic java.util.Vector getAllValues()
public boolean canSelect(NumberNode node)
node
- the node to checkpublic boolean canDeselect(javax.swing.tree.DefaultMutableTreeNode node)
node
- the node to check