public class ExcelBuilderMultiSheet extends ExcelBuilder
ExcelBuilder
to write over several excel sheet once a cell column exceeds the maximum
number of column for excel.ExcelBuilder.Type
Modifier and Type | Field and Description |
---|---|
protected boolean |
multiSheetMode |
boldFont, CRASH_ON_CELL_OVERFLOW, create, currentSheetId, drawing, LAST_COLUMN, LAST_ROW, MAX_COLUMN, MAX_ROW, sheets, type, workbook
Constructor and Description |
---|
ExcelBuilderMultiSheet() |
ExcelBuilderMultiSheet(ExcelBuilder.Type type) |
ExcelBuilderMultiSheet(ExcelBuilder.Type type,
String firstSheet) |
Modifier and Type | Method and Description |
---|---|
protected int |
autoSelectSheet(int column)
Compute the sheet/column required to access the given column.
|
protected org.apache.poi.ss.usermodel.Cell |
getOrCreateCell(int i,
int j) |
int |
getVirtualCellColumn(int realColumn)
Return a column ID for the expected cell:
returns 255 for realColumn=255
returns 0 for realColumn=256
...
|
int |
getVirtualCellSheet(int realColumn)
Return a sheet ID for the expected cell:
sheet 0 for cells [0;255]
sheet 1 for cells [256;511]
...
|
boolean |
isMultiSheetColumns() |
void |
setMultiSheetColumns(boolean multiSheetMode)
If true, the builder is able to switch on next sheets to fill cells with column id > 255.
|
protected boolean |
validateCellIndex(int row,
int column,
String content)
Only invalidate cells having a too large row id.
|
addComment, buildComment, getAllSheets, getBoldFont, getColor, getColor, getCurrentSheet, getCurrentSheetId, getHSSFWorkbook, getOrCreateRow, getWorkbook, load, load, loadPicture, mergeRange, newCellStyle, newColoredCellStyle, newFont, newFont, newSheet, save, save, setCell, setCell, setColumnWidth, setColumnWidthAuto, setCurrentSheetId, setFreezePane, setFreezePane, setPicture, setRowHeight, setSplitPane, sheetInitialized
protected boolean multiSheetMode
public ExcelBuilderMultiSheet()
public ExcelBuilderMultiSheet(ExcelBuilder.Type type, String firstSheet)
public ExcelBuilderMultiSheet(ExcelBuilder.Type type)
public boolean isMultiSheetColumns()
public void setMultiSheetColumns(boolean multiSheetMode)
protected org.apache.poi.ss.usermodel.Cell getOrCreateCell(int i, int j)
getOrCreateCell
in class ExcelBuilder
protected boolean validateCellIndex(int row, int column, String content)
IllegalArgumentException
if CRASH_ON_CELL_OVERFLOW
is set to true.
validateCellIndex
in class ExcelBuilder
public int getVirtualCellSheet(int realColumn)
public int getVirtualCellColumn(int realColumn)
protected int autoSelectSheet(int column)
Copyright © 2015 Nuxeo SA. All rights reserved.