Module jp.ecuacion.util.poi
Interface IfDataTypeCellExcelTableWriter
- All Superinterfaces:
IfDataTypeCellExcelTable,IfExcelTable<org.apache.poi.ss.usermodel.Cell>,IfExcelTableWriter<org.apache.poi.ss.usermodel.Cell>
- All Known Implementing Classes:
CellFreeExcelTableWriter,CellOneLineHeaderExcelTableWriter
public interface IfDataTypeCellExcelTableWriter
extends IfDataTypeCellExcelTable, IfExcelTableWriter<org.apache.poi.ss.usermodel.Cell>
Provides the excel table writer interface
with object type obtained from the excel data is
Cell.-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns copiesDataFormatOnly value.copiesDataFormatOnly(boolean value) Sets copiesDataFormatOnly value.GetscolumnStyleMapto reuseCellStyle.default voidwriteToCell(int columnNumberFromZero, org.apache.poi.ss.usermodel.Cell sourceCellData, org.apache.poi.ss.usermodel.Cell destCell) Writes a value to the cell.Methods inherited from interface jp.ecuacion.util.poi.excel.table.IfDataTypeCellExcelTable
getStringValueMethods inherited from interface jp.ecuacion.util.poi.excel.table.IfExcelTable
getFarLeftAndTopHeaderLabel, getHeaderLabelData, getNumberOfHeaderLines, getSheetName, ignoresAdditionalColumnsOfHeaderData, ignoresAdditionalColumnsOfHeaderData, isVerticalAndHorizontalOpposite, isVerticalAndHorizontalOpposite
-
Method Details
-
writeToCell
default void writeToCell(int columnNumberFromZero, org.apache.poi.ss.usermodel.Cell sourceCellData, org.apache.poi.ss.usermodel.Cell destCell) Writes a value to the cell.The number of CellStyle in an excel file has limit: 64,000. If it exceeds, we'll get the exception below. To avoid it CellStyle has to be reused. To reuse style
- Specified by:
writeToCellin interfaceIfExcelTableWriter<org.apache.poi.ss.usermodel.Cell>- Parameters:
columnNumberFromZero- column number starting from zero. Used as a key to store and reuse the style for each column.sourceCellData- sourceCellDatadestCell- destCell
-
copiesDataFormatOnly
Sets copiesDataFormatOnly value.When this is
true, whole style is not copied to the destination cell, butDataFormatonly.
This means grid-line, font, font-size, cell color, etc... of the cell is not copied.- Parameters:
value- boolean
-
copiesDataFormatOnly
boolean copiesDataFormatOnly()Returns copiesDataFormatOnly value.When this is
true, whole style is not copied to the destination cell, butDataFormatonly.
This means grid-line, font, font-size, cell color, etc... of the cell is not copied.- Returns:
- boolean
-
getColumnStyleMap
GetscolumnStyleMapto reuseCellStyle.- Returns:
- columnStyleMap
-