Package org.imixs.workflow.poi
Class POIUtil
java.lang.Object
org.imixs.workflow.poi.POIUtil
The POIUtil is a helper class to insert columns and rows into a given
template.
- Version:
- 1.0
- Author:
- rsoika
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCellReference(int col, int row) Resolves column and row number into a excel reference.static voidinsertColumn(org.apache.poi.xssf.usermodel.XSSFSheet sheet, int startColumn, int endColumn) Inserts one column in a XSSFSheet before a given start column (beginning by 0).static voidinsertRows(org.apache.poi.xssf.usermodel.XSSFSheet sheet, String cellReference, int numberOfRows) Insert n rows in a XSSFSheet from a given cell reference.
-
Constructor Details
-
POIUtil
public POIUtil()
-
-
Method Details
-
insertRows
public static void insertRows(org.apache.poi.xssf.usermodel.XSSFSheet sheet, String cellReference, int numberOfRows) Insert n rows in a XSSFSheet from a given cell reference.- Parameters:
sheet-cellReference-numberOfRows-
-
insertColumn
public static void insertColumn(org.apache.poi.xssf.usermodel.XSSFSheet sheet, int startColumn, int endColumn) Inserts one column in a XSSFSheet before a given start column (beginning by 0). The end column defines the last column in the sheet to be shifted (which is the last column in the sheet).- Parameters:
sheet-startColumn- - column before the new column should be insertedendColumn- - last column in the sheet
-
getCellReference
Resolves column and row number into a excel reference.- Parameters:
col-row-- Returns:
-