Package fr.becpg.repo.helper
Class ExcelHelper
java.lang.Object
fr.becpg.repo.helper.ExcelHelper
ExcelHelper class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intappendExcelField(List<AttributeExtractorServiceImpl.AttributeExtractorStructure> computedFields, String prefix, Map<String, Object> item, org.apache.poi.xssf.usermodel.XSSFSheet sheet, org.apache.poi.ss.usermodel.Row row, int cellnum, int rowNum, List<Locale> supportedLocales, ExcelHelper.ExcelCellStyles excelCellStyles) appendExcelField.static intappendExcelHeader(List<AttributeExtractorServiceImpl.AttributeExtractorStructure> fields, String prefix, String titlePrefix, org.apache.poi.ss.usermodel.Row headerRow, org.apache.poi.ss.usermodel.Row labelRow, ExcelHelper.ExcelCellStyles excelCellStyles, org.apache.poi.xssf.usermodel.XSSFSheet sheet, int cellnum, ExcelHelper.ExcelFieldTitleProvider titleProvider, List<Locale> supportedLocales) appendExcelHeader.static org.apache.poi.xssf.usermodel.XSSFColorbeCPGHeaderColor.static org.apache.poi.xssf.usermodel.XSSFColorbeCPGHeaderTextColor.static org.apache.poi.xssf.usermodel.XSSFColorcreateGreenColor.static org.apache.poi.xssf.usermodel.XSSFColorcreateRedColor.static booleanisExcelType(Serializable value) isExcelType.private static StringshiftFormula(String formula, int rowNum, org.apache.poi.xssf.usermodel.XSSFSheet sheet)
-
Constructor Details
-
ExcelHelper
public ExcelHelper()
-
-
Method Details
-
appendExcelField
public static int appendExcelField(List<AttributeExtractorServiceImpl.AttributeExtractorStructure> computedFields, String prefix, Map<String, Object> item, org.apache.poi.xssf.usermodel.XSSFSheet sheet, org.apache.poi.ss.usermodel.Row row, int cellnum, int rowNum, List<Locale> supportedLocales, ExcelHelper.ExcelCellStyles excelCellStyles) appendExcelField.
- Parameters:
computedFields- aListobject.prefix- aStringobject.item- aMapobject.sheet- aXSSFSheetobject.row- aRowobject.cellnum- a int.rowNum- a int.supportedLocales- aListobject.excelCellStyles- aExcelHelper.ExcelCellStylesobject- Returns:
- a int.
-
shiftFormula
-
isExcelType
isExcelType.
- Parameters:
value- aSerializableobject.- Returns:
- a boolean.
-
appendExcelHeader
public static int appendExcelHeader(List<AttributeExtractorServiceImpl.AttributeExtractorStructure> fields, String prefix, String titlePrefix, org.apache.poi.ss.usermodel.Row headerRow, org.apache.poi.ss.usermodel.Row labelRow, ExcelHelper.ExcelCellStyles excelCellStyles, org.apache.poi.xssf.usermodel.XSSFSheet sheet, int cellnum, ExcelHelper.ExcelFieldTitleProvider titleProvider, List<Locale> supportedLocales) appendExcelHeader.
- Parameters:
fields- aListobject.prefix- aStringobject.titlePrefix- aStringobject.headerRow- aRowobject.labelRow- aRowobject.sheet- aXSSFSheetobject.cellnum- a int.titleProvider- aExcelHelper.ExcelFieldTitleProviderobject.supportedLocales- aListobject.excelCellStyles- aExcelHelper.ExcelCellStylesobject- Returns:
- a int.
-
createGreenColor
public static org.apache.poi.xssf.usermodel.XSSFColor createGreenColor()createGreenColor.
- Returns:
- a
XSSFColorobject
-
createRedColor
public static org.apache.poi.xssf.usermodel.XSSFColor createRedColor()createRedColor.
- Returns:
- a
XSSFColorobject
-
beCPGHeaderColor
public static org.apache.poi.xssf.usermodel.XSSFColor beCPGHeaderColor()beCPGHeaderColor.
- Returns:
- a
XSSFColorobject
-
beCPGHeaderTextColor
public static org.apache.poi.xssf.usermodel.XSSFColor beCPGHeaderTextColor()beCPGHeaderTextColor.
- Returns:
- a
XSSFColorobject
-