|
||||||||||
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.PropertyNode
public class PropertyNode
This node class represents individual parameters of generic objects (in practice this means classifiers). So all direct children of a classifier or other generic objects in the tree are going to be property nodes. Note that these nodes do not themselves have editors all editing in the user interface actaully happens in the child nodes of this class that it controls. On top of creating these child nodes and initializing them with the correct editing configuration, this class is also responsible for obtaining all of the possible values from the child nodes.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
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, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 editorMethod Detail |
---|
public 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 check
public boolean canDeselect(javax.swing.tree.DefaultMutableTreeNode node)
node
- the node to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |