public class ExcelUtils extends Object
| 构造器和说明 |
|---|
ExcelUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
createFreezePane(org.apache.poi.xssf.streaming.SXSSFSheet sxssfSheet,
Integer row) |
static Boolean |
exportForExcel(javax.servlet.http.HttpServletResponse response,
List<List<String[]>> dataLists,
HashMap notBorderMap,
HashMap regionMap,
HashMap columnMap,
HashMap styles,
HashMap paneMap,
String fileName,
String[] sheetName,
String[] labelName,
HashMap rowStyles,
HashMap columnStyles,
HashMap dropDownMap) |
static String |
getCellVal(org.apache.poi.ss.usermodel.Cell cell) |
static DecimalFormat |
getDecimalFormat() |
static List<List<LinkedHashMap<String,String>>> |
importForExcelData(org.apache.poi.ss.usermodel.Workbook book,
String[] sheetName,
HashMap indexMap,
HashMap continueRowMap) |
static boolean |
isBlank(String str) |
static void |
setBorder(org.apache.poi.ss.usermodel.CellStyle cellStyle,
Boolean isBorder) |
static void |
setColumnWidth(org.apache.poi.xssf.streaming.SXSSFSheet sxssfSheet,
HashMap map) |
static void |
setDataValidation(org.apache.poi.xssf.streaming.SXSSFSheet sheet,
List<String[]> dropDownListData,
int dataListSize) |
static void |
setDataValidation(org.apache.poi.xssf.streaming.SXSSFSheet xssfWsheet,
String[] list,
Integer firstRow,
Integer lastRow,
Integer firstCol,
Integer lastCol) |
static void |
setExcelCellStyles(org.apache.poi.ss.usermodel.Cell cell,
org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
org.apache.poi.xssf.streaming.SXSSFRow sxssfRow,
List<Object[]> rowstyleList,
int rowIndex) |
static void |
setExcelStyles(org.apache.poi.ss.usermodel.Cell cell,
org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
org.apache.poi.xssf.streaming.SXSSFRow sxssfRow,
Integer fontSize,
Boolean bold,
Boolean center,
Boolean isBorder,
Boolean leftBoolean,
Boolean rightBoolean,
Integer fontColor,
Integer height) |
static void |
setExcelStyles(org.apache.poi.ss.usermodel.Cell cell,
org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
org.apache.poi.xssf.streaming.SXSSFRow sxssfRow,
List<List<Object[]>> styles,
int cellIndex,
int rowIndex) |
static void |
setExcelStyles(HashMap notBorderMap,
org.apache.poi.ss.usermodel.Cell cell,
org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
org.apache.poi.xssf.streaming.SXSSFRow sxssfRow,
int k,
int jRow) |
static void |
setMergedRegion(org.apache.poi.xssf.streaming.SXSSFSheet sheet,
ArrayList<Integer[]> rowColList) |
static void |
setMergedRegion(org.apache.poi.xssf.streaming.SXSSFSheet sheet,
int firstRow,
int lastRow,
int firstCol,
int lastCol) |
public static final DecimalFormat getDecimalFormat()
public static Boolean exportForExcel(javax.servlet.http.HttpServletResponse response, List<List<String[]>> dataLists, HashMap notBorderMap, HashMap regionMap, HashMap columnMap, HashMap styles, HashMap paneMap, String fileName, String[] sheetName, String[] labelName, HashMap rowStyles, HashMap columnStyles, HashMap dropDownMap)
public static List<List<LinkedHashMap<String,String>>> importForExcelData(org.apache.poi.ss.usermodel.Workbook book, String[] sheetName, HashMap indexMap, HashMap continueRowMap)
public static boolean isBlank(String str)
public static void createFreezePane(org.apache.poi.xssf.streaming.SXSSFSheet sxssfSheet,
Integer row)
public static void setColumnWidth(org.apache.poi.xssf.streaming.SXSSFSheet sxssfSheet,
HashMap map)
public static void setMergedRegion(org.apache.poi.xssf.streaming.SXSSFSheet sheet,
ArrayList<Integer[]> rowColList)
public static void setMergedRegion(org.apache.poi.xssf.streaming.SXSSFSheet sheet,
int firstRow,
int lastRow,
int firstCol,
int lastCol)
public static void setDataValidation(org.apache.poi.xssf.streaming.SXSSFSheet sheet,
List<String[]> dropDownListData,
int dataListSize)
public static void setDataValidation(org.apache.poi.xssf.streaming.SXSSFSheet xssfWsheet,
String[] list,
Integer firstRow,
Integer lastRow,
Integer firstCol,
Integer lastCol)
public static void setExcelStyles(HashMap notBorderMap, org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.xssf.streaming.SXSSFWorkbook wb, org.apache.poi.xssf.streaming.SXSSFRow sxssfRow, int k, int jRow)
public static void setExcelStyles(org.apache.poi.ss.usermodel.Cell cell,
org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
org.apache.poi.xssf.streaming.SXSSFRow sxssfRow,
Integer fontSize,
Boolean bold,
Boolean center,
Boolean isBorder,
Boolean leftBoolean,
Boolean rightBoolean,
Integer fontColor,
Integer height)
public static void setExcelCellStyles(org.apache.poi.ss.usermodel.Cell cell,
org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
org.apache.poi.xssf.streaming.SXSSFRow sxssfRow,
List<Object[]> rowstyleList,
int rowIndex)
public static void setExcelStyles(org.apache.poi.ss.usermodel.Cell cell,
org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
org.apache.poi.xssf.streaming.SXSSFRow sxssfRow,
List<List<Object[]>> styles,
int cellIndex,
int rowIndex)
public static void setBorder(org.apache.poi.ss.usermodel.CellStyle cellStyle,
Boolean isBorder)
public static String getCellVal(org.apache.poi.ss.usermodel.Cell cell)
Copyright © 2018. All rights reserved.