类 MergedRegionHelper
java.lang.Object
org.jeecgframework.poi.excel.html.helper.MergedRegionHelper
合并单元格帮助类
- 作者:
- JEECG
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Integer[]getRowAndColSpan(int row, int col) 获取合并区域booleanisMergedRegion(int row, int col) 是不是合并区域booleanisNeedCreate(int row, int col) 是不是需要创建这个TDvoidshiftRows(org.apache.poi.ss.usermodel.Sheet sheet, int rowIndex, int size, int shiftRows) 插入之后还原之前的合并单元格
-
构造器详细资料
-
MergedRegionHelper
public MergedRegionHelper(org.apache.poi.ss.usermodel.Sheet sheet)
-
-
方法详细资料
-
isNeedCreate
public boolean isNeedCreate(int row, int col) 是不是需要创建这个TD- 参数:
row-col-- 返回:
-
isMergedRegion
public boolean isMergedRegion(int row, int col) 是不是合并区域- 参数:
row-col-- 返回:
-
getRowAndColSpan
获取合并区域- 参数:
row-col-- 返回:
-
shiftRows
public void shiftRows(org.apache.poi.ss.usermodel.Sheet sheet, int rowIndex, int size, int shiftRows) 插入之后还原之前的合并单元格- 参数:
rowIndex-size-
-