Class BaseXlsStyleGenerator<ID extends Serializable,T extends AbstractEntity<ID>>
- java.lang.Object
-
- com.ocs.dynamo.ui.composite.export.impl.BaseXlsStyleGenerator<ID,T>
-
- Type Parameters:
ID- the type of the primary keyT- the type of the entity
- All Implemented Interfaces:
XlsStyleGenerator<ID,T>
public class BaseXlsStyleGenerator<ID extends Serializable,T extends AbstractEntity<ID>> extends Object implements XlsStyleGenerator<ID,T>
Base style generator for Excel exports- Author:
- bas.rutten
-
-
Constructor Summary
Constructors Constructor Description BaseXlsStyleGenerator(org.apache.poi.ss.usermodel.Workbook workbook)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.poi.ss.usermodel.CellStylegetCellStyle(int index, T entity, Object value, AttributeModel attributeModel)Returns the cell style for a certain cellorg.apache.poi.ss.usermodel.CellStylegetHeaderStyle(int index)Returns the style used in the header roworg.apache.poi.ss.usermodel.CellStylegetTotalsStyle(Class<?> type, AttributeModel attributeModel)org.apache.poi.ss.usermodel.WorkbookgetWorkbook()booleanisThousandsGrouping()
-
-
-
Method Detail
-
getCellStyle
public org.apache.poi.ss.usermodel.CellStyle getCellStyle(int index, T entity, Object value, AttributeModel attributeModel)Returns the cell style for a certain cell- Specified by:
getCellStylein interfaceXlsStyleGenerator<ID extends Serializable,T extends AbstractEntity<ID>>- Parameters:
index- the column indexentity- the entityvalue- the value- Returns:
-
getTotalsStyle
public org.apache.poi.ss.usermodel.CellStyle getTotalsStyle(Class<?> type, AttributeModel attributeModel)
- Specified by:
getTotalsStylein interfaceXlsStyleGenerator<ID extends Serializable,T extends AbstractEntity<ID>>- Returns:
-
getHeaderStyle
public org.apache.poi.ss.usermodel.CellStyle getHeaderStyle(int index)
Returns the style used in the header row- Specified by:
getHeaderStylein interfaceXlsStyleGenerator<ID extends Serializable,T extends AbstractEntity<ID>>- Parameters:
index- the column index- Returns:
-
getWorkbook
public org.apache.poi.ss.usermodel.Workbook getWorkbook()
-
isThousandsGrouping
public boolean isThousandsGrouping()
-
-