Search in sources :

Example 1 with RowHeightProperty

use of com.alibaba.excel.metadata.property.RowHeightProperty in project easyexcel by alibaba.

the class AbstractWriteHolder method dealRowHigh.

private void dealRowHigh(List<WriteHandler> handlerList) {
    RowHeightProperty headRowHeightProperty = getExcelWriteHeadProperty().getHeadRowHeightProperty();
    RowHeightProperty contentRowHeightProperty = getExcelWriteHeadProperty().getContentRowHeightProperty();
    if (headRowHeightProperty == null && contentRowHeightProperty == null) {
        return;
    }
    Short headRowHeight = null;
    if (headRowHeightProperty != null) {
        headRowHeight = headRowHeightProperty.getHeight();
    }
    Short contentRowHeight = null;
    if (contentRowHeightProperty != null) {
        contentRowHeight = contentRowHeightProperty.getHeight();
    }
    handlerList.add(new SimpleRowHeightStyleStrategy(headRowHeight, contentRowHeight));
}
Also used : SimpleRowHeightStyleStrategy(com.alibaba.excel.write.style.row.SimpleRowHeightStyleStrategy) RowHeightProperty(com.alibaba.excel.metadata.property.RowHeightProperty)

Aggregations

RowHeightProperty (com.alibaba.excel.metadata.property.RowHeightProperty)1 SimpleRowHeightStyleStrategy (com.alibaba.excel.write.style.row.SimpleRowHeightStyleStrategy)1