public class HSSFCellStyleProducer extends Object implements CellStyleProducer
Constructor and Description |
---|
HSSFCellStyleProducer(org.apache.poi.ss.usermodel.Workbook workbook,
boolean hardLimit,
ExcelColorProducer colorProducer,
ExcelColorProducer fontColorProducer)
The class does the dirty work of creating the HSSF-objects.
|
Modifier and Type | Method and Description |
---|---|
org.apache.poi.ss.usermodel.CellStyle |
createCellStyle(InstanceID id,
StyleSheet element,
CellBackground bg)
Creates a HSSFCellStyle based on the given ExcelDataCellStyle.
|
ExcelFontFactory |
getFontFactory() |
public HSSFCellStyleProducer(org.apache.poi.ss.usermodel.Workbook workbook, boolean hardLimit, ExcelColorProducer colorProducer, ExcelColorProducer fontColorProducer)
workbook
- the workbook for which the styles should be created.public org.apache.poi.ss.usermodel.CellStyle createCellStyle(InstanceID id, StyleSheet element, CellBackground bg)
createCellStyle
in interface CellStyleProducer
element
- can be null for background only cells.bg
- the optional background style for the table cell.public ExcelFontFactory getFontFactory()
getFontFactory
in interface CellStyleProducer