List of usage examples for org.apache.poi.ss.usermodel Sheet setDefaultRowHeightInPoints
void setDefaultRowHeightInPoints(float height);
From source file:com.vaadin.addon.spreadsheet.SpreadsheetFactory.java
License:Open Source License
private static void setDefaultRowHeight(Spreadsheet spreadsheet, final Sheet sheet) { float defaultRowHeightInPoints = sheet.getDefaultRowHeightInPoints(); if (defaultRowHeightInPoints <= 0) { sheet.setDefaultRowHeightInPoints(DEFAULT_ROW_HEIGHT_POINTS); spreadsheet.getState().defRowH = DEFAULT_ROW_HEIGHT_POINTS; } else {//from w ww.j av a 2 s .c om spreadsheet.getState().defRowH = defaultRowHeightInPoints; } }