|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractCellEditor
weka.gui.ensembleLibraryEditor.tree.ModelTreeNodeEditor
public class ModelTreeNodeEditor
This class is in charge of dynamically creating editor GUI objects on demand for the main JTree class that will display our Classifier tree model of parameters. This is in fact the CellEditor class that is registered with our tree.
Basically it delegates much of the work to the various NodeEditor classes found in this package. All it really has to do is detect what of node it is and then instantiate an editor of the appropriate type.
Constructor Summary | |
---|---|
ModelTreeNodeEditor(javax.swing.JTree tree)
default Constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
The item Listener that gets registered with all node editors that have a widget that had actionPerformed events. |
java.lang.Object |
getCellEditorValue()
I'm supposed to implemnent this as part of the TreeCellEDitor interface. |
java.awt.Component |
getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row)
This method uses the ModelTreeNodeRenderer class to get the individual editors and then registers this classes editing event listeners with them |
boolean |
isCellEditable(java.util.EventObject event)
This tells the JTree whether or not to let nodes in the tree be edited. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
The item Listener that gets registered with all node editors that have a widget that had itemStateChangeg events. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
The prtopertyListener that gets registered with all node editors that have a widget that had propertyStateChangeg events. |
Methods inherited from class javax.swing.AbstractCellEditor |
---|
addCellEditorListener, cancelCellEditing, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditing |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.CellEditor |
---|
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell, stopCellEditing |
Constructor Detail |
---|
public ModelTreeNodeEditor(javax.swing.JTree tree)
tree
- the tree to useMethod Detail |
---|
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
public boolean isCellEditable(java.util.EventObject event)
isCellEditable
in interface javax.swing.CellEditor
isCellEditable
in class javax.swing.AbstractCellEditor
event
- the event
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean selected, boolean expanded, boolean leaf, int row)
getTreeCellEditorComponent
in interface javax.swing.tree.TreeCellEditor
tree
- the associated treevalue
- the valueselected
- true if item is selectedexpanded
- true if it is expandedleaf
- true if it is a leafrow
- the row in the tree
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
- the eventpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- the eventpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |