public class MergeUtil extends Object
| 构造器和说明 |
|---|
MergeUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static cn.renlm.plugins.MyExcel.util.MergeUtil.MergeCellPoints |
findCellRangeAddress(int titleRowPos,
int rowNbr,
Map<String,List<Integer[]>> titleRowColMap)
获取合并区域列表
|
static org.apache.poi.ss.usermodel.Cell |
findFirstCellOfUnitRegion(org.apache.poi.ss.usermodel.Sheet sh,
int rowIndex,
int columnIndex)
获取单元格所在区域的第一个单元格
|
static void |
mergeComplexTitle(org.apache.poi.ss.usermodel.Sheet sh,
cn.renlm.plugins.MyExcel.util.MergeUtil.MergeCellPoints points)
多行复杂表头单元格合并处理
|
static void |
pushTitleRowColMap(Map<String,List<Integer[]>> map,
String title,
Integer[] point)
标题坐标映射
|
public static final void mergeComplexTitle(org.apache.poi.ss.usermodel.Sheet sh,
cn.renlm.plugins.MyExcel.util.MergeUtil.MergeCellPoints points)
sh - points - public static final cn.renlm.plugins.MyExcel.util.MergeUtil.MergeCellPoints findCellRangeAddress(int titleRowPos,
int rowNbr,
Map<String,List<Integer[]>> titleRowColMap)
titleRowPos - rowNbr - titleRowColMap - public static final org.apache.poi.ss.usermodel.Cell findFirstCellOfUnitRegion(org.apache.poi.ss.usermodel.Sheet sh,
int rowIndex,
int columnIndex)
sh - rowIndex - columnIndex - Copyright © 2021. All rights reserved.