mirror of https://github.com/alibaba/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
743 B
34 lines
743 B
package com.alibaba.excel.metadata; |
|
|
|
import java.util.HashMap; |
|
import java.util.Map; |
|
|
|
import org.apache.poi.ss.usermodel.CellStyle; |
|
|
|
/** |
|
* Excel基础模型 |
|
* @author jipengfei |
|
*/ |
|
public class BaseRowModel { |
|
|
|
/** |
|
* 每列样式 |
|
*/ |
|
private Map<Integer,CellStyle> cellStyleMap = new HashMap<Integer,CellStyle>(); |
|
|
|
public void addStyle(Integer row, CellStyle cellStyle){ |
|
cellStyleMap.put(row,cellStyle); |
|
} |
|
|
|
public CellStyle getStyle(Integer row){ |
|
return cellStyleMap.get(row); |
|
} |
|
|
|
public Map<Integer, CellStyle> getCellStyleMap() { |
|
return cellStyleMap; |
|
} |
|
|
|
public void setCellStyleMap(Map<Integer, CellStyle> cellStyleMap) { |
|
this.cellStyleMap = cellStyleMap; |
|
} |
|
}
|
|
|