Class PoiHelper
java.lang.Object
com.flowingcode.vaadin.addons.gridexporter.PoiHelper
Class for adding support for older versions of Apache POI by using reflection
- Author:
- mlopez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 voidSets the width of the given XWPFTableCellstatic voidsetWonCTTblGridCol(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGridCol cctblgridcol, String string) Sets the width of the given CTTblGridColstatic voidsetWonCTTblWidth(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tblW, String string) Sets the width of the given CTTblWidth
-
Constructor Details
-
PoiHelper
public PoiHelper()
-
-
Method Details
-
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, 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, String string) Sets the width of the given CTTblGridCol- Parameters:
cctblgridcol-string-
-
setWidth
Sets the width of the given XWPFTableCell- Parameters:
currentCell-string-
-