public abstract class ExcelGenerator extends Object
new MyExcelGenerator(inputData).generateWorkbook().write(outputStream);
User: roman.stumm
Date: 24.05.13
Time: 11:17
viaboxx GmbH, 2013
| Modifier and Type | Class and Description |
|---|---|
class |
ExcelGenerator.Styles
style factory class. replace by own class or add additional styles by overriding method 'initStyles()'
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
STYLE_blueCell |
protected static String |
STYLE_boldHeader |
protected static String |
STYLE_boldTitle |
protected static String |
STYLE_redCell |
protected ExcelGenerator.Styles |
styles |
protected org.apache.poi.hssf.usermodel.HSSFWorkbook |
wb |
| Constructor and Description |
|---|
ExcelGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.poi.hssf.usermodel.HSSFCell |
createCell(org.apache.poi.hssf.usermodel.HSSFRow row,
int column,
Object value) |
protected org.apache.poi.hssf.usermodel.HSSFCell |
createCell(org.apache.poi.hssf.usermodel.HSSFRow row,
int column,
Object value,
org.apache.poi.ss.usermodel.CellStyle style) |
protected void |
createHeaders(org.apache.poi.hssf.usermodel.HSSFRow row,
int column,
org.apache.poi.ss.usermodel.CellStyle style,
String... headers) |
protected abstract void |
generateSheets()
override in subclasses to generate the sheets into 'wb'
|
org.apache.poi.hssf.usermodel.HSSFWorkbook |
generateWorkbook() |
ExcelGenerator.Styles |
getStyles() |
org.apache.poi.hssf.usermodel.HSSFWorkbook |
getWb() |
protected void |
initStyles()
method can be overwritten to create additional styles
|
protected void |
initWorkbook() |
protected org.apache.poi.ss.usermodel.CellStyle |
style(String name) |
protected org.apache.poi.hssf.usermodel.HSSFWorkbook wb
protected ExcelGenerator.Styles styles
protected static final String STYLE_boldTitle
protected static final String STYLE_boldHeader
protected static final String STYLE_redCell
protected static final String STYLE_blueCell
public org.apache.poi.hssf.usermodel.HSSFWorkbook generateWorkbook()
protected abstract void generateSheets()
protected void initWorkbook()
protected void initStyles()
public org.apache.poi.hssf.usermodel.HSSFWorkbook getWb()
public ExcelGenerator.Styles getStyles()
protected org.apache.poi.ss.usermodel.CellStyle style(String name)
protected org.apache.poi.hssf.usermodel.HSSFCell createCell(org.apache.poi.hssf.usermodel.HSSFRow row,
int column,
Object value,
org.apache.poi.ss.usermodel.CellStyle style)
protected org.apache.poi.hssf.usermodel.HSSFCell createCell(org.apache.poi.hssf.usermodel.HSSFRow row,
int column,
Object value)
protected void createHeaders(org.apache.poi.hssf.usermodel.HSSFRow row,
int column,
org.apache.poi.ss.usermodel.CellStyle style,
String... headers)
Copyright © 2008-2015. All Rights Reserved.