Example usage for org.apache.poi.ss.usermodel Row getZeroHeight

List of usage examples for org.apache.poi.ss.usermodel Row getZeroHeight

Introduction

In this page you can find the example usage for org.apache.poi.ss.usermodel Row getZeroHeight.

Prototype

boolean getZeroHeight();

Source Link

Document

Get whether or not to display this row with 0 height

Usage

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);
    }

}