Package io.keikai.model.impl.html
Class HtmlExporter
java.lang.Object
io.keikai.model.impl.html.HtmlExporter
- All Implemented Interfaces:
io.keikai.range.SExporter,Serializable
Implementation of
XExporter interface that converts Excel data
model io.keikai.model.sys.SBook into a PDF format written to a OutputStream- Author:
- peterkuo, kuro
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.zkoss.zul.Chartprotected intprotected intprotected intprotected intprotected Stringprotected floatprotected int[]protected float[]protected intprotected intprotected intprotected intprotected floatprotected floatprotected floatprotected floatprotected intprotected intprotected booleanprotected booleanprotected floatprotected int[]protected float[]protected floatprotected floatprotected floatprotected io.keikai.model.SBook -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenableHeadings(boolean enable) Enables row and column headings printingvoidvoidexport(io.keikai.model.SBook workbook, OutputStream outputStream) Exports Keikai SpreadsheetSBookinto another format written to aOutputStream.voidexport(io.keikai.model.SheetRegion sheetRegion, OutputStream outputStream) Exports selected area of Keikai Spreadsheet active sheet represented byio.keikai.model.sys.XRangevoidexport(io.keikai.model.SSheet worksheet, OutputStream outputStream) Exports Keikai SpreadsheetSSheetinto another format written to a
-
Field Details
-
wb
protected io.keikai.model.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 -
leftMargin
protected float leftMargin -
rightMargin
protected float rightMargin -
topMargin
protected float topMargin -
bottomMargin
protected float bottomMargin -
headerMargin
protected float headerMargin -
sheetsWithRepeatingRowsAndColumns
-
totalAvailablePageWidth
protected float totalAvailablePageWidth -
totalAvailablePageHeight
protected float totalAvailablePageHeight -
columnLeft
protected float[] columnLeft -
rowTop
protected float[] rowTop -
lastPageRowColumnBounds
-
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
-
-
Constructor Details
-
HtmlExporter
public HtmlExporter()
-
-
Method Details
-
export
Exports Keikai SpreadsheetSBookinto another format written to aOutputStream. Note that it exports entire workbook.- Specified by:
exportin interfaceio.keikai.range.SExporter- Parameters:
workbook-outputStream-- Throws:
IOException
-
export
Exports Keikai SpreadsheetSSheetinto another format written to a- Parameters:
worksheet- sheet instance that contains selected areaoutputStream- outoutStream to which exported contents to be written- Throws:
IOException
-
export
- Specified by:
exportin interfaceio.keikai.range.SExporter- Throws:
IOException
-
export
public void export(io.keikai.model.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-
-