Class XSSFWorkbookHelper


  • public class XSSFWorkbookHelper
    extends java.lang.Object
    A helper to access XSSFWorkbook's APIs.
    Author:
    jumperchen
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addDefaultCellStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, CellStyle cellStyle)  
      static int addDxfCellStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, XSSFDxfCellStyle cellStyle)  
      static void addNamedStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, java.util.List<NamedStyle> cellStyles)  
      static void clearDefaultCellStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)  
      static void clearDxfCellStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)  
      static void clearNamedStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)  
      static void clearTableStyles​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)  
      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)  
      static XSSFDxfCellStyle createDxfCellStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)  
      static XSSFDxfCellStyle createDxfCellStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, int j)  
      static NamedStyle createNamedStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, java.lang.String name, boolean custom, int builtinId, int index)  
      static void setAlgName​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, java.lang.String algName)  
      static void setDefaultPivotStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, java.lang.String defaultPivotStyle)  
      static void setDefaultTableStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, java.lang.String defaultTableStyle)  
      static void setHashValue​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, java.lang.String hashValue)  
      static void setSaltValue​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, java.lang.String saltValue)  
      static void setSpinCount​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, java.lang.String spinCount)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                                      java.lang.String algName)
      • setHashValue

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

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

        public static void setSpinCount​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                        java.lang.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,
                                          java.util.List<NamedStyle> cellStyles)
      • setDefaultTableStyle

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

        public static void setDefaultPivotStyle​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                                java.lang.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,
                                                  java.lang.String name,
                                                  boolean custom,
                                                  int builtinId,
                                                  int index)