Class XSSFWorkbookHelper


  • public class XSSFWorkbookHelper
    extends Object
    A helper to access XSSFWorkbook's APIs.
    Author:
    jumperchen
    • Constructor Detail

      • XSSFWorkbookHelper

        public XSSFWorkbookHelper()
    • Method Detail

      • createDxfCellStyle

        public static XSSFDxfCellStyle createDxfCellStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                                          int j)
      • createDxfCellStyle

        public static XSSFDxfCellStyle createDxfCellStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)
      • addDxfCellStyle

        public static int addDxfCellStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                          XSSFDxfCellStyle cellStyle)
      • createDefaultCellStyle

        public static org.apache.poi.xssf.usermodel.XSSFCellStyle createDefaultCellStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                                                                         org.apache.poi.xssf.usermodel.extensions.XSSFCellBorder border,
                                                                                         org.apache.poi.xssf.usermodel.extensions.XSSFCellFill fill,
                                                                                         org.apache.poi.xssf.usermodel.XSSFFont font,
                                                                                         int numFmtId)
      • setAlgName

        public static void setAlgName​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                      String algName)
      • setHashValue

        public static void setHashValue​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                        String hashValue)
      • setSaltValue

        public static void setSaltValue​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                        String saltValue)
      • setSpinCount

        public static void setSpinCount​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                        String spinCount)
      • clearDefaultCellStyles

        public static void clearDefaultCellStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)
      • addDefaultCellStyle

        public static void addDefaultCellStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                               CellStyle cellStyle)
      • clearNamedStyles

        public static void clearNamedStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)
      • addNamedStyles

        public static void addNamedStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                          List<NamedStyle> cellStyles)
      • setDefaultTableStyle

        public static void setDefaultTableStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                                String defaultTableStyle)
      • setDefaultPivotStyle

        public static void setDefaultPivotStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                                String defaultPivotStyle)
      • clearDxfCellStyles

        public static void clearDxfCellStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)
      • clearTableStyles

        public static void clearTableStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)
      • createNamedStyle

        public static NamedStyle createNamedStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                                  String name,
                                                  boolean custom,
                                                  int builtinId,
                                                  int index)