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, stopCellEditing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell, stopCellEditing
public CheckBoxNodeEditor(JTree tree)
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
public boolean isCellEditable(EventObject event)
isCellEditable
in interface CellEditor
isCellEditable
in class AbstractCellEditor
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row)
getTreeCellEditorComponent
in interface TreeCellEditor
Copyright © 2015–2022 SciJava. All rights reserved.