net.sf.jeppers.grid
Interface StyleModel

All Known Implementing Classes:
AbstractStyleModel

public interface StyleModel

StyleModel handles editors, renderers, and cell styles for a grid of cells.

Author:
Cameron Zemek

Method Summary
 void addStyleModelListener(StyleModelListener listener)
           
 CellStyle getCellStyle(int row, int column)
          Returns the style for the cell at row, column.
 GridCellEditor getEditor(Class aClass, int row, int column, JGrid grid)
          Returns an appropriate editor for the cell specified by this row and column.
 GridCellRenderer getRenderer(Class aClass, int row, int column, JGrid grid)
          Returns an appropriate renderer for the cell specified by this row and column.
 void removeStyleModelListener(StyleModelListener listener)
           
 void updateUI()
          Notification from the UIManager that the L&F has changed.
 

Method Detail

addStyleModelListener

public void addStyleModelListener(StyleModelListener listener)

removeStyleModelListener

public void removeStyleModelListener(StyleModelListener listener)

getEditor

public GridCellEditor getEditor(Class aClass,
                                int row,
                                int column,
                                JGrid grid)
Returns an appropriate editor for the cell specified by this row and column.


getRenderer

public GridCellRenderer getRenderer(Class aClass,
                                    int row,
                                    int column,
                                    JGrid grid)
Returns an appropriate renderer for the cell specified by this row and column.


getCellStyle

public CellStyle getCellStyle(int row,
                              int column)
Returns the style for the cell at row, column.


updateUI

public void updateUI()
Notification from the UIManager that the L&F has changed.