|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
weka.gui.ensembleLibraryEditor.tree.DefaultNode
public class DefaultNode
This class is responsible for representing objects that we haven't explicitly written custom tree node editors for. In other words - Objects that are "weird". It didn't make sense for us to try to come up with a nice tree representation for absolutely everything, e.g. CostMatrixes or ArrayLists. This class is responsible for representing Classifier parameter values that are not numbers, an enumeration of values (e.g. true/false), or Objects that have their own GenericObjectEditors (like other Classifiers). So in these cases we can just use the default editor that came with the object.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
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, 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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 nodeMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |