edu.princeton.toy.choosers
Class TExceptionChooserPane.CheckBoxCellRenderer

java.lang.Object
  extended by edu.princeton.toy.choosers.TExceptionChooserPane.CheckBoxCellRenderer
All Implemented Interfaces:
TreeCellRenderer
Enclosing class:
TExceptionChooserPane

protected class TExceptionChooserPane.CheckBoxCellRenderer
extends Object
implements TreeCellRenderer

CheckBoxCellRenderer renders a CheckBoxCell for the TExceptionChooser.


Constructor Summary
TExceptionChooserPane.CheckBoxCellRenderer()
          Creates a new CheckBoxCellRenderer.
 
Method Summary
 Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
          Implement TreeCellRenderer to extract the CheckBoxCell from a DefaultMutableTreeNode, configure its display properties, and return that component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TExceptionChooserPane.CheckBoxCellRenderer

public TExceptionChooserPane.CheckBoxCellRenderer()
Creates a new CheckBoxCellRenderer.

Method Detail

getTreeCellRendererComponent

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

Specified by:
getTreeCellRendererComponent in interface TreeCellRenderer