public class PivotDataExcelHelper
extends java.lang.Object
PivotDataRow
to list with separated cells and provides methods for merging cells.Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
cellIdsToMerged |
protected java.util.List<PivotDataSeparatedCell> |
cellsToMerged |
protected PivotData |
pivotData |
protected java.util.List<java.util.List<PivotDataSeparatedCell>> |
rows |
Constructor and Description |
---|
PivotDataExcelHelper(PivotData pivotData) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addAboveCell(PivotDataSeparatedCell aboveCell,
int indexRow) |
protected PivotDataSeparatedCell |
convertPivotCellToSeparatedCell(PivotDataCell pivotDataCell) |
protected int |
createAndAddSeparatedCells(PivotDataSeparatedCell separatedCell,
java.util.List<PivotDataSeparatedCell> cellsRow) |
protected java.util.List<PivotDataSeparatedCell> |
createRow(PivotDataRow currentRow,
java.util.List<PivotDataSeparatedCell> prevRow) |
java.util.List<java.lang.String> |
getCellIdsToMerged() |
java.util.List<org.apache.poi.ss.util.CellRangeAddress> |
getCellRangeAddresses() |
int |
getFirstColById(java.lang.String id) |
int |
getFirstRowById(java.lang.String id) |
int |
getLastColById(java.lang.String id) |
int |
getLastRowById(java.lang.String id) |
int |
getOriginColumnsNumber() |
java.util.List<java.util.List<PivotDataSeparatedCell>> |
getRows() |
protected void |
initRows() |
protected PivotData pivotData
protected java.util.List<PivotDataSeparatedCell> cellsToMerged
protected java.util.List<java.lang.String> cellIdsToMerged
protected java.util.List<java.util.List<PivotDataSeparatedCell>> rows
public PivotDataExcelHelper(PivotData pivotData)
protected void initRows()
public java.util.List<java.util.List<PivotDataSeparatedCell>> getRows()
public int getOriginColumnsNumber()
public java.util.List<java.lang.String> getCellIdsToMerged()
public int getFirstRowById(java.lang.String id)
id
- PivotDataSeparatedCell id that should be mergedpublic int getLastRowById(java.lang.String id)
id
- PivotDataSeparatedCell id that should be mergedpublic int getFirstColById(java.lang.String id)
id
- PivotDataSeparatedCell id that should be mergedpublic int getLastColById(java.lang.String id)
id
- PivotDataSeparatedCell id that should be mergedpublic java.util.List<org.apache.poi.ss.util.CellRangeAddress> getCellRangeAddresses()
HSSFSheet
protected java.util.List<PivotDataSeparatedCell> createRow(PivotDataRow currentRow, java.util.List<PivotDataSeparatedCell> prevRow)
protected boolean addAboveCell(PivotDataSeparatedCell aboveCell, int indexRow)
protected int createAndAddSeparatedCells(PivotDataSeparatedCell separatedCell, java.util.List<PivotDataSeparatedCell> cellsRow)
protected PivotDataSeparatedCell convertPivotCellToSeparatedCell(PivotDataCell pivotDataCell)