类 PoiCellUtil
java.lang.Object
org.jeecgframework.poi.util.PoiCellUtil
处理单元格的数值
- 作者:
- liusq
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringgetCellValue(org.apache.poi.ss.usermodel.Cell cell) 获取单元格的值 _NONE(-1), NUMERIC(0), STRING(1), FORMULA(2), BLANK(3), BOOLEAN(4), ERROR(5);static StringgetCellValue(org.apache.poi.ss.usermodel.Sheet sheet, int row, int column) 读取单元格的值static StringgetMergedRegionValue(org.apache.poi.ss.usermodel.Sheet sheet, int row, int column) 获取合并单元格的值static booleanisMergedRegion(org.apache.poi.ss.usermodel.Sheet sheet, int row, int column) 判断指定的单元格是否是合并单元格
-
构造器详细资料
-
PoiCellUtil
public PoiCellUtil()
-
-
方法详细资料
-
getCellValue
读取单元格的值- 参数:
sheet-row-column-- 返回:
-
getMergedRegionValue
public static String getMergedRegionValue(org.apache.poi.ss.usermodel.Sheet sheet, int row, int column) 获取合并单元格的值- 参数:
sheet-row-column-- 返回:
-
isMergedRegion
public static boolean isMergedRegion(org.apache.poi.ss.usermodel.Sheet sheet, int row, int column) 判断指定的单元格是否是合并单元格- 参数:
sheet-row-column-- 返回:
-
getCellValue
获取单元格的值 _NONE(-1), NUMERIC(0), STRING(1), FORMULA(2), BLANK(3), BOOLEAN(4), ERROR(5);- 参数:
cell-- 返回:
-