public class GenericObjectNode
extends javax.swing.tree.DefaultMutableTreeNode
implements java.beans.PropertyChangeListener
Constructor and Description |
---|
GenericObjectNode(AddModelsPanel panel,
java.lang.Object value,
weka.gui.GenericObjectEditor genericObjectEditor,
java.lang.String toolTipText)
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 |
combineAllValues(java.util.Vector previouslySelected,
java.util.Vector remainingValues)
This method is responsible for returning all possible values through
a recursive loop.
|
weka.gui.GenericObjectEditor |
getEditor()
A getter for the GenericObjectEditor for this node
|
java.lang.StringBuffer |
getHelpText()
getter for the tooltip text
|
GenericObjectNodeEditor |
getNodeEditor()
A getter for the GenericObjectNodeEditor for this node
|
java.lang.Object |
getObject()
getter for this node's object
|
javax.swing.JPanel |
getParentPanel()
getter for the parent panel
|
java.lang.String |
getToolTipText()
getter for the tooltip text
|
javax.swing.JTree |
getTree()
returns the current tree
|
java.util.Vector |
getValues()
This method iterates over all of the child nodes of this
GenericObjectNode and requests the verious sets of values that the
user has presumably specified.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This implements the PropertyChangeListener for this node that gets
registered with its Editor.
|
void |
setNodeEditor(GenericObjectNodeEditor editor)
A setter for the GenericObjectNodeEditor for this node
|
void |
setObject(java.lang.Object newValue)
setter for this nodes object
|
void |
setTree(javax.swing.JTree tree)
It seems kind of dumb that the reference to the tree model is passed in
seperately - but know that this is actually necessary.
|
void |
setUserObject(java.lang.Object o)
this is a simple filter for the setUserObject method.
|
java.lang.String |
toString()
returns always null
|
void |
updateTree()
This method uses introspection to programatically discover all of
the parameters for this generic object.
|
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 GenericObjectNode(AddModelsPanel panel, java.lang.Object value, weka.gui.GenericObjectEditor genericObjectEditor, java.lang.String toolTipText)
panel
- the reference to the parent panel for calls to JDialogvalue
- the value stored at this tree nodegenericObjectEditor
- the GenericObjectEditor for this objecttoolTipText
- the tipText to be displayed for this objectpublic void setTree(javax.swing.JTree tree)
tree
- the tree to usepublic javax.swing.JTree getTree()
public weka.gui.GenericObjectEditor getEditor()
public void setNodeEditor(GenericObjectNodeEditor editor)
Editor
- A new GenericObjectNodeEditorpublic GenericObjectNodeEditor getNodeEditor()
public java.lang.StringBuffer getHelpText()
public java.lang.String getToolTipText()
public java.lang.Object getObject()
public void setObject(java.lang.Object newValue)
newValue
- sets the new objectpublic void setUserObject(java.lang.Object o)
setUserObject
in interface javax.swing.tree.MutableTreeNode
setUserObject
in class javax.swing.tree.DefaultMutableTreeNode
o
- the object to setpublic javax.swing.JPanel getParentPanel()
public 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 eventpublic void updateTree()
public java.util.Vector getValues()
public void combineAllValues(java.util.Vector previouslySelected, java.util.Vector remainingValues)
previouslySelected
- stores the values chosen in this branch of the recursionremainingValues
- the sets of values left