public abstract class PoiExcelExporter extends Object implements ILayerExporter
Modifier and Type | Field and Description |
---|---|
protected int |
sheetNumber |
protected org.apache.poi.ss.usermodel.Row |
xlRow |
protected org.apache.poi.ss.usermodel.Sheet |
xlSheet |
protected org.apache.poi.ss.usermodel.Workbook |
xlWorkbook |
CONFIG_ATTRIBUTE
Constructor and Description |
---|
PoiExcelExporter(IOutputStreamProvider outputStreamProvider) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.poi.ss.usermodel.Workbook |
createWorkbook() |
void |
exportBegin(OutputStream outputStream)
Should be called only once at the beginning of an export operation.
|
void |
exportCell(OutputStream outputStream,
Object exportDisplayValue,
ILayerCell cell,
IConfigRegistry configRegistry) |
void |
exportEnd(OutputStream outputStream)
Should be called only once at the end of an export operation.
|
void |
exportLayerBegin(OutputStream outputStream,
String layerName) |
void |
exportLayerEnd(OutputStream outputStream,
String layerName) |
void |
exportRowBegin(OutputStream outputStream,
int rowPosition) |
void |
exportRowEnd(OutputStream outputStream,
int rowPosition) |
OutputStream |
getOutputStream(org.eclipse.swt.widgets.Shell shell) |
protected abstract void |
setFillForegroundColor(org.apache.poi.ss.usermodel.CellStyle xlCellStyle,
org.eclipse.swt.graphics.Color swtColor) |
protected abstract void |
setFontColor(org.apache.poi.ss.usermodel.Font xlFont,
org.eclipse.swt.graphics.Color swtColor) |
protected org.apache.poi.ss.usermodel.Workbook xlWorkbook
protected int sheetNumber
protected org.apache.poi.ss.usermodel.Sheet xlSheet
protected org.apache.poi.ss.usermodel.Row xlRow
public PoiExcelExporter(IOutputStreamProvider outputStreamProvider)
public OutputStream getOutputStream(org.eclipse.swt.widgets.Shell shell)
getOutputStream
in interface ILayerExporter
public void exportBegin(OutputStream outputStream) throws IOException
ILayerExporter
exportBegin
in interface ILayerExporter
IOException
public void exportEnd(OutputStream outputStream) throws IOException
ILayerExporter
exportEnd
in interface ILayerExporter
IOException
public void exportLayerBegin(OutputStream outputStream, String layerName) throws IOException
exportLayerBegin
in interface ILayerExporter
IOException
public void exportLayerEnd(OutputStream outputStream, String layerName) throws IOException
exportLayerEnd
in interface ILayerExporter
IOException
public void exportRowBegin(OutputStream outputStream, int rowPosition) throws IOException
exportRowBegin
in interface ILayerExporter
IOException
public void exportRowEnd(OutputStream outputStream, int rowPosition) throws IOException
exportRowEnd
in interface ILayerExporter
IOException
public void exportCell(OutputStream outputStream, Object exportDisplayValue, ILayerCell cell, IConfigRegistry configRegistry) throws IOException
exportCell
in interface ILayerExporter
IOException
protected abstract org.apache.poi.ss.usermodel.Workbook createWorkbook()
protected abstract void setFillForegroundColor(org.apache.poi.ss.usermodel.CellStyle xlCellStyle, org.eclipse.swt.graphics.Color swtColor)
protected abstract void setFontColor(org.apache.poi.ss.usermodel.Font xlFont, org.eclipse.swt.graphics.Color swtColor)
Copyright © 2013. All Rights Reserved.