Class XSSFSheetHelper


  • public class XSSFSheetHelper
    extends java.lang.Object
    A XSSF Sheet helper to access some protected APIs
    Author:
    jumperchen
    • Constructor Summary

      Constructors 
      Constructor Description
      XSSFSheetHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addConditionalFormattingToExtensionList​(org.apache.poi.xssf.usermodel.XSSFSheet sheet, ConditionalFormatting cf, java.util.Map<org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule,​java.lang.String> extRuleIdMap)  
      static org.openxmlformats.schemas.spreadsheetml.x2006.main.CTAutoFilter getCTAutoFilter​(org.apache.poi.xssf.usermodel.XSSFSheet sheet)  
      static SheetProtection getOrCreateSheetProtection​(org.apache.poi.xssf.usermodel.XSSFSheet sheet)  
      static void protectSheet​(org.apache.poi.xssf.usermodel.XSSFSheet sheet, java.lang.String password)  
      static void setPrintHeadings​(org.apache.poi.xssf.usermodel.XSSFSheet sheet, boolean value)  
      static void setSheetPassword​(org.apache.poi.xssf.usermodel.XSSFSheet sheet, java.lang.String saltValue, java.lang.String hashValue, java.lang.String spinCount, java.lang.String algName)  
      static void setSheetPasswordHash​(org.apache.poi.xssf.usermodel.XSSFSheet sheet, short hashpass)  
      static void setSparkline​(org.apache.poi.xssf.usermodel.XSSFSheet sheet, java.lang.String valuesFormula, java.lang.String anchor, java.lang.String type, boolean isWinlose, boolean firstVisible, boolean lastVisible, boolean highVisible, boolean lowVisible, boolean negativeVisible, boolean markersVisible, java.lang.String seriesColor, java.lang.String firstColor, java.lang.String lastColor, java.lang.String highColor, java.lang.String lowColor, java.lang.String negativeColor, java.lang.String markersColor)  
      static void unsetSheetProtection​(org.apache.poi.xssf.usermodel.XSSFSheet sheet)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XSSFSheetHelper

        public XSSFSheetHelper()
    • Method Detail

      • setSheetPasswordHash

        public static void setSheetPasswordHash​(org.apache.poi.xssf.usermodel.XSSFSheet sheet,
                                                short hashpass)
      • setSheetPassword

        public static void setSheetPassword​(org.apache.poi.xssf.usermodel.XSSFSheet sheet,
                                            java.lang.String saltValue,
                                            java.lang.String hashValue,
                                            java.lang.String spinCount,
                                            java.lang.String algName)
      • unsetSheetProtection

        public static void unsetSheetProtection​(org.apache.poi.xssf.usermodel.XSSFSheet sheet)
      • setSparkline

        public static void setSparkline​(org.apache.poi.xssf.usermodel.XSSFSheet sheet,
                                        java.lang.String valuesFormula,
                                        java.lang.String anchor,
                                        java.lang.String type,
                                        boolean isWinlose,
                                        boolean firstVisible,
                                        boolean lastVisible,
                                        boolean highVisible,
                                        boolean lowVisible,
                                        boolean negativeVisible,
                                        boolean markersVisible,
                                        java.lang.String seriesColor,
                                        java.lang.String firstColor,
                                        java.lang.String lastColor,
                                        java.lang.String highColor,
                                        java.lang.String lowColor,
                                        java.lang.String negativeColor,
                                        java.lang.String markersColor)
      • addConditionalFormattingToExtensionList

        public static void addConditionalFormattingToExtensionList​(org.apache.poi.xssf.usermodel.XSSFSheet sheet,
                                                                   ConditionalFormatting cf,
                                                                   java.util.Map<org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule,​java.lang.String> extRuleIdMap)
      • getOrCreateSheetProtection

        public static SheetProtection getOrCreateSheetProtection​(org.apache.poi.xssf.usermodel.XSSFSheet sheet)
      • setPrintHeadings

        public static void setPrintHeadings​(org.apache.poi.xssf.usermodel.XSSFSheet sheet,
                                            boolean value)
      • protectSheet

        public static void protectSheet​(org.apache.poi.xssf.usermodel.XSSFSheet sheet,
                                        java.lang.String password)
      • getCTAutoFilter

        public static org.openxmlformats.schemas.spreadsheetml.x2006.main.CTAutoFilter getCTAutoFilter​(org.apache.poi.xssf.usermodel.XSSFSheet sheet)