| | |
| | | package com.vci.starter.poi.bo; |
| | | |
| | | import org.apache.poi.ss.usermodel.CellStyle; |
| | | import org.apache.poi.ss.usermodel.Font; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | private Integer width; |
| | | |
| | | |
| | | public String getFontColor() { |
| | | return fontColor; |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 构造方法 |
| | | * @param row 行 |
| | | * @param col 列 |
| | | * @param obj 值 |
| | | */ |
| | | public WriteExcelData(int row, int col, boolean center, Object obj){ |
| | | this.row = row; |
| | | this.col = col; |
| | | this.center = center; |
| | | this.obj = obj; |
| | | } |
| | | |
| | | /** |
| | | * 构造方法 |
| | | * @param row 行 |
| | | * @param rowTo 合并行 |
| | | * @param merged 是否合并单元格 |
| | | * @param center 是否居中 |
| | | * @param col 列 |
| | | * @param obj 值 |
| | | */ |
| | | public WriteExcelData(int row,int rowTo,boolean merged,boolean center, int col, Object obj){ |
| | | this.row = row; |
| | | this.rowTo = rowTo; |
| | | this.merged = merged; |
| | | this.center = center; |
| | | this.col = col; |
| | | this.obj = obj; |
| | | } |
| | | |
| | | /** |
| | | * 写公式 |
| | | * @param row 行号 从0 开始 |
| | | * @param col 列号从0开始 |