Class StylesTableHelper


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

      • StylesTableHelper

        public StylesTableHelper()
    • Method Detail

      • addTableStyle

        public static void addTableStyle​(org.apache.poi.xssf.model.StylesTable stylesSource,
                                         org.apache.poi.xssf.usermodel.XSSFTableStyle tbStyle)
      • createTableStyle

        public static TableStyle createTableStyle​(org.apache.poi.xssf.model.StylesTable stylesSource,
                                                  String name)
      • getFonts

        public static List<org.apache.poi.xssf.usermodel.XSSFFont> getFonts​(org.apache.poi.xssf.model.StylesTable stylesSource)
      • getNumberFormats

        public static Map<Short,​String> getNumberFormats​(org.apache.poi.xssf.model.StylesTable stylesSource)
      • getBorders

        public static List<org.apache.poi.xssf.usermodel.extensions.XSSFCellBorder> getBorders​(org.apache.poi.xssf.model.StylesTable stylesSource)
      • getFills

        public static List<org.apache.poi.xssf.usermodel.extensions.XSSFCellFill> getFills​(org.apache.poi.xssf.model.StylesTable stylesSource)
      • getCellStyleXfs

        public static List<org.openxmlformats.schemas.spreadsheetml.x2006.main.CTXf> getCellStyleXfs​(org.apache.poi.xssf.model.StylesTable stylesSource)
      • getCellStyleDxfs

        public static List<org.openxmlformats.schemas.spreadsheetml.x2006.main.CTXf> getCellStyleDxfs​(org.apache.poi.xssf.model.StylesTable stylesSource)
      • getCellXfs

        public static List<org.openxmlformats.schemas.spreadsheetml.x2006.main.CTXf> getCellXfs​(org.apache.poi.xssf.model.StylesTable stylesSource)
      • getTableStyles

        public static Map<String,​TableStyle> getTableStyles​(org.apache.poi.xssf.model.StylesTable stylesSource)
      • setDefaultPivotStyle

        public static void setDefaultPivotStyle​(org.apache.poi.xssf.model.StylesTable stylesSource,
                                                String defaultPivotStyle)
      • setDefaultTableStyle

        public static void setDefaultTableStyle​(String defaultTableStyle)