Package io.keikai.model.impl.html
Class HtmlExporter
- java.lang.Object
-
- io.keikai.model.impl.html.HtmlExporter
-
- All Implemented Interfaces:
SExporter
,Serializable
public class HtmlExporter extends Object implements SExporter, Serializable
Implementation ofXExporter
interface that converts Excel data modelio.keikai.model.sys.SBook
into a PDF format written to aOutputStream
- Author:
- peterkuo, kuro
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.zkoss.zul.Chart
_chart
protected int
_outcol1
protected int
_outcol2
protected int
_outrow1
protected int
_outrow2
protected String
_refSheetName
protected float
bottomMargin
protected int[]
colBreaks
protected float[]
columnLeft
protected int
currentSheetIndex
protected int
endColumn
protected int
endRow
protected int
firstColumn
protected float
footerMargin
protected float
headerFooterTotalWidth
protected float
headerMargin
protected Map<String,Integer>
lastPageRowColumnBounds
protected float
leftMargin
protected int
pageCount
protected int
pageNumber
protected boolean
printGridLines
protected boolean
printHeadings
protected float
rightMargin
protected int[]
rowBreaks
protected float[]
rowTop
protected Map<Integer,Map<String,int[]>>
sheetsWithRepeatingRowsAndColumns
protected float
topMargin
protected float
totalAvailablePageHeight
protected float
totalAvailablePageWidth
protected SBook
wb
-
Constructor Summary
Constructors Constructor Description HtmlExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enableHeadings(boolean enable)
Enables row and column headings printingvoid
export(SBook book, File file)
Export a bookvoid
export(SBook workbook, OutputStream outputStream)
Exports Keikai SpreadsheetSBook
into another format written to aOutputStream
.void
export(SheetRegion sheetRegion, OutputStream outputStream)
Exports selected area of Keikai Spreadsheet active sheet represented byio.keikai.model.sys.XRange
void
export(SSheet worksheet, OutputStream outputStream)
Exports Keikai SpreadsheetSSheet
into another format written to a
-
-
-
Field Detail
-
wb
protected SBook wb
-
colBreaks
protected int[] colBreaks
-
rowBreaks
protected int[] rowBreaks
-
firstColumn
protected int firstColumn
-
endColumn
protected int endColumn
-
endRow
protected int endRow
-
pageCount
protected int pageCount
-
pageNumber
protected int pageNumber
-
printGridLines
protected boolean printGridLines
-
printHeadings
protected boolean printHeadings
-
headerFooterTotalWidth
protected float headerFooterTotalWidth
-
leftMargin
protected float leftMargin
-
rightMargin
protected float rightMargin
-
topMargin
protected float topMargin
-
bottomMargin
protected float bottomMargin
-
headerMargin
protected float headerMargin
-
footerMargin
protected float footerMargin
-
sheetsWithRepeatingRowsAndColumns
protected Map<Integer,Map<String,int[]>> sheetsWithRepeatingRowsAndColumns
-
totalAvailablePageWidth
protected float totalAvailablePageWidth
-
totalAvailablePageHeight
protected float totalAvailablePageHeight
-
columnLeft
protected float[] columnLeft
-
rowTop
protected float[] rowTop
-
currentSheetIndex
protected int currentSheetIndex
-
_outcol1
protected int _outcol1
-
_outcol2
protected int _outcol2
-
_outrow1
protected int _outrow1
-
_outrow2
protected int _outrow2
-
_chart
protected org.zkoss.zul.Chart _chart
-
_refSheetName
protected String _refSheetName
-
-
Method Detail
-
export
public void export(SBook workbook, OutputStream outputStream) throws IOException
Exports Keikai SpreadsheetSBook
into another format written to aOutputStream
. Note that it exports entire workbook.- Specified by:
export
in interfaceSExporter
- Parameters:
workbook
-outputStream
-- Throws:
IOException
-
export
public void export(SSheet worksheet, OutputStream outputStream) throws IOException
Exports Keikai SpreadsheetSSheet
into another format written to a- Parameters:
worksheet
- sheet instance that contains selected areaoutputStream
- outoutStream to which exported contents to be written- Throws:
IOException
-
export
public void export(SBook book, File file) throws IOException
Description copied from interface:SExporter
Export a book- Specified by:
export
in interfaceSExporter
- Parameters:
book
- the book to exportfile
- the output file to store data- Throws:
IOException
-
export
public void export(SheetRegion sheetRegion, OutputStream outputStream) throws IOException
Exports selected area of Keikai Spreadsheet active sheet represented byio.keikai.model.sys.XRange
- Parameters:
worksheet
- sheet instance that contains selected areaarea
- area representing selected area to be exportedoutputStream
- outoutStream to which exported contents to be written- Throws:
IOException
-
enableHeadings
public void enableHeadings(boolean enable)
Enables row and column headings printing- Parameters:
enable
-
-
-