Package org.primefaces.util
Class ExcelStylesManager
java.lang.Object
org.primefaces.util.ExcelStylesManager
- Direct Known Subclasses:
ExcelXmlStylesManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final ExcelOptionsprotected final org.apache.poi.ss.usermodel.Workbook -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExcelStylesManager(org.apache.poi.ss.usermodel.Workbook wb, Locale locale, ExcelOptions options) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyCellOptions(org.apache.poi.ss.usermodel.CellStyle style) protected voidapplyFacetOptions(org.apache.poi.ss.usermodel.CellStyle style) static ExcelStylesManagercreateExcelStylesManager(org.apache.poi.ss.usermodel.Workbook wb, Locale locale, ExcelOptions options) org.apache.poi.ss.usermodel.RichTextStringcreateRichTextString(String value) protected Stringprotected Stringprotected StringvoidupdateCell(UIColumn column, org.apache.poi.ss.usermodel.Cell cell, ColumnValue value) If value is an explicitly set value, then use that value to update the cell, otherwise if ExcelOptions.isStronglyTypedCells = true then for cells check:voidupdateFacetCell(org.apache.poi.ss.usermodel.Cell cell, ColumnValue value)
-
Field Details
-
DEFAULT_FONT
- See Also:
-
wb
protected final org.apache.poi.ss.usermodel.Workbook wb -
options
-
-
Constructor Details
-
ExcelStylesManager
protected ExcelStylesManager(org.apache.poi.ss.usermodel.Workbook wb, Locale locale, ExcelOptions options)
-
-
Method Details
-
createExcelStylesManager
public static ExcelStylesManager createExcelStylesManager(org.apache.poi.ss.usermodel.Workbook wb, Locale locale, ExcelOptions options) -
updateFacetCell
-
updateCell
If value is an explicitly set value, then use that value to update the cell, otherwise if ExcelOptions.isStronglyTypedCells = true then for cells check:Numeric - String that are all numbers make them a numeric cell Currency - Convert to currency cell so math can be done in Excel String - fallback to just a normal string cell
Possible future enhancement of Date cells as well.- Parameters:
column- the column from which value comescell- the cell to operate onvalue- the ColumnValue value to put in the cell
-
applyFacetOptions
protected void applyFacetOptions(org.apache.poi.ss.usermodel.CellStyle style) -
applyCellOptions
protected void applyCellOptions(org.apache.poi.ss.usermodel.CellStyle style) -
createRichTextString
-
getCurrencyExcelFormat
-
getFormattedIntegerExcelFormat
-
getFormattedDecimalExcelFormat
-