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

com.alibaba.excel.metadata.BaseRowModel Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package com.alibaba.excel.metadata;

import java.util.HashMap;
import java.util.Map;

import org.apache.poi.ss.usermodel.CellStyle;

import com.alibaba.excel.annotation.ExcelIgnore;

/**
 * Excel基础模型
 *
 * @author jipengfei
 * @deprecated Now you don't need to extend any classes
 */
@Deprecated
public class BaseRowModel {

    /**
     * 每列样式
     */
    @ExcelIgnore
    private Map cellStyleMap = new HashMap();

    public void addStyle(Integer row, CellStyle cellStyle) {
        cellStyleMap.put(row, cellStyle);
    }

    public CellStyle getStyle(Integer row) {
        return cellStyleMap.get(row);
    }

    public Map getCellStyleMap() {
        return cellStyleMap;
    }

    public void setCellStyleMap(Map cellStyleMap) {
        this.cellStyleMap = cellStyleMap;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy