public class SheetTransformationControllerImpl extends java.lang.Object implements SheetTransformationController
SheetTransformationController interface
to track all cells transformations| Constructor and Description |
|---|
SheetTransformationControllerImpl(Sheet sheet) |
| Modifier and Type | Method and Description |
|---|---|
int |
duplicateDown(Block block,
int n)
This method duplicates given block down
|
int |
duplicateRight(Block block,
int n)
This method duplicates given block to the right
|
void |
duplicateRow(RowCollection rowCollection)
Duplicates given row cells according to passed
RowCollection object |
Sheet |
getSheet() |
java.util.List |
getTransformations() |
void |
removeBodyRows(Block block)
Deletes the body of the block
|
void |
removeBorders(Block block)
This method removes borders around given block shifting all other rows
|
void |
removeLeftRightBorders(Block block)
This method removes left and right borders for the block
|
void |
removeRowCells(org.apache.poi.ss.usermodel.Row row,
int startCellNum,
int endCellNum)
Clears row cells in a given range
|
public SheetTransformationControllerImpl(Sheet sheet)
public int duplicateDown(Block block, int n)
SheetTransformationControllerduplicateDown in interface SheetTransformationControllerblock - - Block to processn - - number of times to duplicate given blockpublic int duplicateRight(Block block, int n)
SheetTransformationControllerduplicateRight in interface SheetTransformationControllerblock - - Block to processn - - number of times to duplicate given blockpublic void removeBorders(Block block)
SheetTransformationControllerremoveBorders in interface SheetTransformationControllerblock - - Block to processpublic void removeLeftRightBorders(Block block)
SheetTransformationControllerremoveLeftRightBorders in interface SheetTransformationControllerblock - - Block to processpublic void removeRowCells(org.apache.poi.ss.usermodel.Row row,
int startCellNum,
int endCellNum)
SheetTransformationControllerremoveRowCells in interface SheetTransformationControllerrow - Row to processstartCellNum - - start cell number to clearendCellNum - - end cell number to clearpublic void removeBodyRows(Block block)
SheetTransformationControllerremoveBodyRows in interface SheetTransformationControllerblock - Block to processpublic void duplicateRow(RowCollection rowCollection)
SheetTransformationControllerRowCollection objectduplicateRow in interface SheetTransformationControllerrowCollection - - RowCollection object defining duplicate numbers and cell rangespublic java.util.List getTransformations()
getTransformations in interface SheetTransformationControllerpublic Sheet getSheet()
getSheet in interface SheetTransformationControllerSheet corresponding worksheet objectCopyright © 2005-2014 jXLS Team. All Rights Reserved.