All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eworkcloud.excel.model.ExportParams Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package com.eworkcloud.excel.model;

import com.eworkcloud.excel.enmus.ExcelType;
import com.eworkcloud.excel.style.DefaultStyle;
import com.eworkcloud.excel.style.ExportStyle;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Builder
@AllArgsConstructor
public class ExportParams {
    /**
     * 导出版本
     */
    @Builder.Default
    private ExcelType excelType = ExcelType.HSSF;
    /**
     * 工作表名称
     */
    private String sheetName;
    /**
     * 标题内容
     */
    private String title;
    /**
     * 标题行高
     */
    @Builder.Default
    private int titleHeight = 32;
    /**
     * 表头行高
     */
    @Builder.Default
    private int headerHeight = 24;
    /**
     * 固定表头
     */
    @Builder.Default
    private boolean fixedTitle = true;
    /**
     * 冰冻列
     */
    @Builder.Default
    private int freezeCol = 0;
    /**
     * 表格行高(包含图片列将动态调整行高)
     */
    @Builder.Default
    private int rowHeight = 24;
    /**
     * 样式
     */
    @Builder.Default
    private ExportStyle exportStyle = new DefaultStyle();

    public ExportParams() {
        excelType = ExcelType.HSSF;
        titleHeight = 32;
        headerHeight = 24;
        fixedTitle = true;
        freezeCol = 0;
        rowHeight = 24;
        exportStyle = new DefaultStyle();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy