List of usage examples for org.apache.poi.ss.usermodel Row getZeroHeight
boolean getZeroHeight();
From source file:org.tiefaces.components.websheet.service.WebSheetLoader.java
License:MIT License
/** * Setup row info.// ww w . j ava 2 s. co m * * @param facesRow * the faces row * @param sheet1 * the sheet 1 * @param row * the row * @param rowIndex * the row index * @param allowAdd * the allow add */ private void setupRowInfo(final FacesRow facesRow, final Sheet sheet1, final Row row, final int rowIndex, final boolean allowAdd) { facesRow.setAllowAdd(allowAdd); if (row != null) { facesRow.setRendered(!row.getZeroHeight()); facesRow.setRowheight(row.getHeight()); int rowNum = ConfigurationUtility.getOriginalRowNumInHiddenColumn(row); facesRow.setOriginRowIndex(rowNum); } else { facesRow.setRendered(true); facesRow.setRowheight(sheet1.getDefaultRowHeight()); facesRow.setOriginRowIndex(rowIndex); } }