com.guigarage.jgrid.renderer
Interface GridCellRenderer

All Known Implementing Classes:
DefaultGridCellRenderer

public interface GridCellRenderer

Works like the ListCellRenderer Identifies components that can be used to paint the cells in a JGrid

Since:
0.1
Version:
0.1
Author:
hendrikebbers
See Also:
ListCellRenderer, JGrid

Method Summary
 Component getGridCellRendererComponent(JGrid grid, Object value, int index, boolean isSelected, boolean cellHasFocus)
          Returns a component for rendering / painting the cell with the given index & properties
 

Method Detail

getGridCellRendererComponent

Component getGridCellRendererComponent(JGrid grid,
                                       Object value,
                                       int index,
                                       boolean isSelected,
                                       boolean cellHasFocus)
Returns a component for rendering / painting the cell with the given index & properties

Parameters:
grid - The JGrid where the renderer is painting
value - The value that will be rendered by thy returning Component
index - The cell index in the JGrid
isSelected - true if the cell is selected
cellHasFocus - true if the cell has focus
Returns:
A Component for paint the cell in the JGrid


Copyright © 2012. All Rights Reserved.