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 ExcelFormat |
format |
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.ss.usermodel.Workbook |
wb |
| Constructor and Description |
|---|
ExcelGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.poi.ss.usermodel.Cell |
createCell(org.apache.poi.ss.usermodel.Row row,
int column,
Object value) |
protected org.apache.poi.ss.usermodel.Cell |
createCell(org.apache.poi.ss.usermodel.Row row,
int column,
Object value,
org.apache.poi.ss.usermodel.CellStyle style) |
protected void |
createHeaders(org.apache.poi.ss.usermodel.Row 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.ss.usermodel.Workbook |
generateWorkbook() |
ExcelFormat |
getFormat() |
ExcelGenerator.Styles |
getStyles() |
org.apache.poi.ss.usermodel.Workbook |
getWb() |
protected void |
initStyles()
method can be overwritten to create additional styles
|
protected void |
initWorkbook() |
void |
setFormat(ExcelFormat format) |
protected org.apache.poi.ss.usermodel.CellStyle |
style(String name) |
protected ExcelFormat format
protected org.apache.poi.ss.usermodel.Workbook 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 ExcelFormat getFormat()
public void setFormat(ExcelFormat format)
public org.apache.poi.ss.usermodel.Workbook generateWorkbook()
protected abstract void generateSheets()
protected void initWorkbook()
protected void initStyles()
public org.apache.poi.ss.usermodel.Workbook getWb()
public ExcelGenerator.Styles getStyles()
protected org.apache.poi.ss.usermodel.CellStyle style(String name)
protected org.apache.poi.ss.usermodel.Cell createCell(org.apache.poi.ss.usermodel.Row row,
int column,
Object value,
org.apache.poi.ss.usermodel.CellStyle style)
protected org.apache.poi.ss.usermodel.Cell createCell(org.apache.poi.ss.usermodel.Row row,
int column,
Object value)
protected void createHeaders(org.apache.poi.ss.usermodel.Row row,
int column,
org.apache.poi.ss.usermodel.CellStyle style,
String... headers)
Copyright © 2008-2016. All Rights Reserved.