JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.cell
Interface JCComponentCellRenderer

All Superinterfaces:
JCCellRenderer, Serializable
All Known Implementing Classes:
JCCheckBoxCellRenderer, JCComboBoxCellRenderer, JCComboFieldCellRenderer, JCLabelCellRenderer, JCLabelFieldCellRenderer, JCPopupFieldCellRenderer, JCSpinFieldCellRenderer, JCTextFieldCellRenderer

public interface JCComponentCellRenderer
extends JCCellRenderer

A component-based cell renderer interface.

This interface is used to render cells in LiveTable and HiGrid. It uses a component as a rubber stamp for painting cells. This is very helpful if you already have a component or component hierarchy that displays data the way you want.

This model differs from JCLightCellRenderer in that the implementor does not explicitly control drawing. Drawing is handled by the component returned by getRendererComponent().

See Also:
JCCellRenderer, JCLightCellRenderer

Method Summary
 Component getRendererComponent(com.klg.jclass.cell.JCCellInfo cellInfo, Object o, boolean selected)
          Method that returns the cell rendering component.
 

Method Detail

getRendererComponent

public Component getRendererComponent(com.klg.jclass.cell.JCCellInfo cellInfo,
                                      Object o,
                                      boolean selected)
Method that returns the cell rendering component. The container uses the component as a rubber stamp for painting inside the cell.

Parameters:
cellInfo - cell property information
o - object to be rendered
selected - boolean value indicating whether the cell is selected
Returns:
a lightweight component, including Swing components and JClass components

Copyright © 2004 Quest Software Inc..
All rights reserved.