JIDE 3.5.15

com.jidesoft.grid
Interface CellStyleCustomizer


public interface CellStyleCustomizer

This interface works with CellStyleTable to allow you to add extra non-default styles to CellStyle class and use this interface to read the style from CellStyle and customizes the renderer component or the editor component.


Method Summary
 void customizeEditorComponent(int row, int column, Component editorComponent, CellStyle cellStyle)
          Customizes the editor component based on the cell style.
 void customizeRendererComponent(int row, int column, Component rendererComponent, CellStyle cellStyle)
          Customizes the renderer component based on the cell style.
 void releaseRendererComponent(int row, int column, Component rendererComponent)
          Releases the renderer component.
 

Method Detail

customizeRendererComponent

void customizeRendererComponent(int row,
                                int column,
                                Component rendererComponent,
                                CellStyle cellStyle)
Customizes the renderer component based on the cell style.

Parameters:
row - the row index for the renderer component.
column - the column index for the renderer component.
rendererComponent - the renderer component.
cellStyle - the cell style.

releaseRendererComponent

void releaseRendererComponent(int row,
                              int column,
                              Component rendererComponent)
Releases the renderer component. This method should reset the property changed in this customizeRendererComponent to its previous state.

Please note, there is no releaseEditorComponent as a new editor component should be created for each cell editing action.

Parameters:
row - the row index for the renderer component.
column - the column index for the renderer component.
rendererComponent - the renderer component.

customizeEditorComponent

void customizeEditorComponent(int row,
                              int column,
                              Component editorComponent,
                              CellStyle cellStyle)
Customizes the editor component based on the cell style.

Parameters:
row - the row index for the editor component.
column - the column index for the editor component.
editorComponent - the editor component.
cellStyle - the cell style.

JIDE 3.5.15