public class CheckBoxNodeEditor extends AbstractCellEditor implements TreeCellEditor
TreeCellEditor for check box tree nodes.
Thanks to John Zukowski for the sample code upon which this is based.
changeEvent, listenerList| Constructor and Description |
|---|
CheckBoxNodeEditor(JTree tree) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCellEditorValue() |
Component |
getTreeCellEditorComponent(JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row) |
boolean |
isCellEditable(EventObject event) |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell, stopCellEditingpublic CheckBoxNodeEditor(JTree tree)
public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic boolean isCellEditable(EventObject event)
isCellEditable in interface CellEditorisCellEditable in class AbstractCellEditorpublic Component getTreeCellEditorComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row)
getTreeCellEditorComponent in interface TreeCellEditorCopyright © 2015–2022 SciJava. All rights reserved.