Package org.fugerit.java.doc.mod.poi
Class PoiUtils
java.lang.Object
org.fugerit.java.doc.mod.poi.PoiUtils
-
Method Summary
Modifier and TypeMethodDescriptionautoresizeFailHandler(boolean failOnAutoResizeError) static voidautoSizeColumns(org.apache.poi.ss.usermodel.Workbook workbook) static voidcloseWorkbook(org.apache.poi.ss.usermodel.Workbook workbook, DocOutput docOutput) static shortfindClosestColorIndex(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook, String color) static WorkbookHelpernewHelper(boolean xlsx, InputStream is) static voidresizeSheet(org.apache.poi.ss.usermodel.Sheet s) static voidxlsFontStyle(WorkbookHelper helper, org.apache.poi.ss.usermodel.Font font, DocCell cell) static voidxlsFormatStyle(WorkbookHelper helper, org.apache.poi.ss.usermodel.CellStyle style, DocCell cell) static voidxlsxFontStyle(WorkbookHelper helper, org.apache.poi.ss.usermodel.Font font, DocCell cell) static voidxlsxFormatStyle(WorkbookHelper helper, org.apache.poi.ss.usermodel.CellStyle style, DocCell cell)
-
Method Details
-
resizeSheet
public static void resizeSheet(org.apache.poi.ss.usermodel.Sheet s) -
autoSizeColumns
public static void autoSizeColumns(org.apache.poi.ss.usermodel.Workbook workbook) -
xlsxFormatStyle
public static void xlsxFormatStyle(WorkbookHelper helper, org.apache.poi.ss.usermodel.CellStyle style, DocCell cell) -
xlsxFontStyle
public static void xlsxFontStyle(WorkbookHelper helper, org.apache.poi.ss.usermodel.Font font, DocCell cell) -
findClosestColorIndex
public static short findClosestColorIndex(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook, String color) -
xlsFormatStyle
public static void xlsFormatStyle(WorkbookHelper helper, org.apache.poi.ss.usermodel.CellStyle style, DocCell cell) -
xlsFontStyle
public static void xlsFontStyle(WorkbookHelper helper, org.apache.poi.ss.usermodel.Font font, DocCell cell) -
closeWorkbook
public static void closeWorkbook(org.apache.poi.ss.usermodel.Workbook workbook, DocOutput docOutput) throws IOException - Throws:
IOException
-
newHelper
- Throws:
IOException
-
autoresizeFailHandler
-