Interface XlsStyleGenerator<ID extends Serializable,T extends AbstractEntity<ID>>
-
- Type Parameters:
ID- the type of the primary keyT- the type of the entity
- All Known Implementing Classes:
BaseXlsStyleGenerator
public interface XlsStyleGenerator<ID extends Serializable,T extends AbstractEntity<ID>>An interface for an Excel style generator to be used during export of data sets to Excel- Author:
- bas.rutten
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.poi.ss.usermodel.CellStylegetCellStyle(int index, T entity, Object value, AttributeModel am)Returns the cell style for a certain cellorg.apache.poi.ss.usermodel.CellStylegetHeaderStyle(int index)Returns the style to use for a cell in the header roworg.apache.poi.ss.usermodel.CellStylegetTotalsStyle(Class<?> type, AttributeModel am)
-
-
-
Method Detail
-
getHeaderStyle
org.apache.poi.ss.usermodel.CellStyle getHeaderStyle(int index)
Returns the style to use for a cell in the header row- Parameters:
index- the index of the column- Returns:
-
getCellStyle
org.apache.poi.ss.usermodel.CellStyle getCellStyle(int index, T entity, Object value, AttributeModel am)Returns the cell style for a certain cell- Parameters:
index- the column index of the cellentity- the entity for which a value is displayed in the cellvalue- the value of the cellattributeModel- the attribute model- Returns:
-
getTotalsStyle
org.apache.poi.ss.usermodel.CellStyle getTotalsStyle(Class<?> type, AttributeModel am)
- Parameters:
type-am-- Returns:
-
-