org.jeecgframework.poi.util
类 PoiMergeCellUtil

java.lang.Object
  继承者 org.jeecgframework.poi.util.PoiMergeCellUtil

public final class PoiMergeCellUtil
extends Object

纵向合并单元格工具类

作者:
JueYue

方法摘要
static void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet, int startRow, Integer... columns)
          纵向合并相同内容的单元格
static void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet, Map<Integer,int[]> mergeMap, int startRow)
          纵向合并相同内容的单元格
static void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet, Map<Integer,int[]> mergeMap, int startRow, int endRow)
          纵向合并相同内容的单元格
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

mergeCells

public static void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet,
                              int startRow,
                              Integer... columns)
纵向合并相同内容的单元格

参数:
sheet -
startRow - 开始行
columns - 需要处理的列

mergeCells

public static void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet,
                              Map<Integer,int[]> mergeMap,
                              int startRow)
纵向合并相同内容的单元格

参数:
sheet -
mergeMap - key--列,value--依赖的列,没有传空
startRow - 开始行

mergeCells

public static void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet,
                              Map<Integer,int[]> mergeMap,
                              int startRow,
                              int endRow)
纵向合并相同内容的单元格

参数:
sheet -
mergeMap - key--列,value--依赖的列,没有传空
startRow - 开始行
endRow - 结束行


Copyright © 2015. All Rights Reserved.