Class PoiHelper
- java.lang.Object
-
- com.flowingcode.vaadin.addons.gridexporter.PoiHelper
-
public class PoiHelper extends java.lang.ObjectClass for adding support for older versions of Apache POI by using reflection- Author:
- mlopez
-
-
Constructor Summary
Constructors Constructor Description PoiHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancellTypeEquals(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.usermodel.CellType cellType)Verifies if the cell if of the supplied typestatic voidsetBlank(org.apache.poi.ss.usermodel.Cell cell)Tries to set the cell to be blankstatic voidsetWidth(org.apache.poi.xwpf.usermodel.XWPFTableCell currentCell, java.lang.String string)Sets the width of the given XWPFTableCellstatic voidsetWonCTTblGridCol(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGridCol cctblgridcol, java.lang.String string)Sets the width of the given CTTblGridColstatic voidsetWonCTTblWidth(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tblW, java.lang.String string)Sets the width of the given CTTblWidth
-
-
-
Method Detail
-
setBlank
public static void setBlank(org.apache.poi.ss.usermodel.Cell cell)
Tries to set the cell to be blank- Parameters:
cell-
-
cellTypeEquals
public static boolean cellTypeEquals(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.usermodel.CellType cellType)Verifies if the cell if of the supplied type- Parameters:
cell-cellType-- Returns:
-
setWonCTTblWidth
public static void setWonCTTblWidth(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tblW, java.lang.String string)Sets the width of the given CTTblWidth- Parameters:
tblW-string-
-
setWonCTTblGridCol
public static void setWonCTTblGridCol(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGridCol cctblgridcol, java.lang.String string)Sets the width of the given CTTblGridCol- Parameters:
cctblgridcol-string-
-
setWidth
public static void setWidth(org.apache.poi.xwpf.usermodel.XWPFTableCell currentCell, java.lang.String string)Sets the width of the given XWPFTableCell- Parameters:
currentCell-string-
-
-