Class POIUtil

java.lang.Object
org.imixs.workflow.poi.POIUtil

public class POIUtil extends Object
The POIUtil is a helper class to insert columns and rows into a given template.
Version:
1.0
Author:
rsoika
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getCellReference(int col, int row)
    Resolves column and row number into a excel reference.
    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).
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 inserted
      endColumn - - last column in the sheet
    • getCellReference

      public static String getCellReference(int col, int row)
      Resolves column and row number into a excel reference.
      Parameters:
      col -
      row -
      Returns: