edu.princeton.toy.choosers
Class TExceptionChooserPane.CheckBoxCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by edu.princeton.toy.choosers.TExceptionChooserPane.CheckBoxCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TreeCellEditor
Enclosing class:
TExceptionChooserPane

protected class TExceptionChooserPane.CheckBoxCellEditor
extends AbstractCellEditor
implements TreeCellEditor

CheckBoxCellEditor provides a Component which edits a CheckBoxCell for the TExceptionChooser.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
TExceptionChooserPane.CheckBoxCellEditor()
          Creates a new CheckBoxCellEditor.
 
Method Summary
 Object getCellEditorValue()
          Returns the value contained in the editor (that would be the CheckBoxCell we were given to edit).
 Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
          Implement TreeCellEditor to extract the CheckBoxCell from a DefaultMutableTreeNode, configure its display properties, and return that component.
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Constructor Detail

TExceptionChooserPane.CheckBoxCellEditor

public TExceptionChooserPane.CheckBoxCellEditor()
Creates a new CheckBoxCellEditor.

Method Detail

getCellEditorValue

public Object getCellEditorValue()
Returns the value contained in the editor (that would be the CheckBoxCell we were given to edit).

Specified by:
getCellEditorValue in interface CellEditor

getTreeCellEditorComponent

public Component getTreeCellEditorComponent(JTree tree,
                                            Object value,
                                            boolean isSelected,
                                            boolean expanded,
                                            boolean leaf,
                                            int row)
Implement TreeCellEditor to extract the CheckBoxCell from a DefaultMutableTreeNode, configure its display properties, and return that component.

Specified by:
getTreeCellEditorComponent in interface TreeCellEditor