de.jaret.util.ui.table.renderer
Interface IStyleStrategy


public interface IStyleStrategy

Interface for a strategy that can be added to a cell style provider to determine styles on the fly based on the content of the element (such as coloring the background of even rows).

Version:
$Id: IStyleStrategy.java 347 2007-04-07 15:01:10Z olk $
Author:
kliem

Method Summary
 ICellStyle getCellStyle(IRow row, IColumn column, ICellStyle incomingStyle, ICellStyle defaultCellStyle)
          This method is called before a cell style is delivered to the jaret table (by getCellStyle(row, col) in the cell style provider).
 

Method Detail

getCellStyle

ICellStyle getCellStyle(IRow row,
                        IColumn column,
                        ICellStyle incomingStyle,
                        ICellStyle defaultCellStyle)
This method is called before a cell style is delivered to the jaret table (by getCellStyle(row, col) in the cell style provider). It gets the cell style regulary determined by the provider and the default cell style. It can then replace that style according to the strategy. The strategy should not alter the incoming style since this alters all cells using that style.

Parameters:
row - row
column - column
incomingStyle - the determined cell style
defaultCellStyle - the defalt cell style used by the provider
Returns:
cellstyle to be used by the table


Copyright © 2012. All Rights Reserved.