java.lang.Object
com.github.developframework.excel.AbstractColumnDefinition<ENTITY,FIELD>
- 类型参数:
ENTITY- 实体类型FIELD- 装填字段类型
- 所有已实现的接口:
ColumnDefinition<ENTITY>
- 直接已知子类:
BlankColumnDefinition,FormulaColumnDefinition,GeneralColumnDefinition,LiteralColumnDefinition
public abstract class AbstractColumnDefinition<ENTITY,FIELD>
extends Object
implements ColumnDefinition<ENTITY>
列定义
-
字段概要
字段修饰符和类型字段说明protected CellCommentInfoprotected CellStyleKeyProvider<ENTITY>protected ColumnInfoprotected BiFunction<ENTITY,Object, FIELD> protected BiFunction<ENTITY,FIELD, Object> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明cellStyleKey(CellStyleKeyProvider<ENTITY> cellStyleKeyProvider) final AbstractColumnDefinition<ENTITY,FIELD> columnWidth(int columnWidth) 列宽comment(String author, String commentField, BiFunction<org.apache.poi.ss.usermodel.Drawing, org.apache.poi.ss.usermodel.Cell, org.apache.poi.ss.usermodel.ClientAnchor> anchorFunction) voidconfigureCellStyle(org.apache.poi.ss.usermodel.Cell cell, CellStyleManager cellStyleManager, ENTITY entity, Object value) 配置单元格格式protected StringdetermineCellStyleKey(org.apache.poi.ss.usermodel.Cell cell, Object value) 根据值决定单元格格式键getCellValue(org.apache.poi.ss.usermodel.Cell cell, Class<?> fieldClass) 读取单元格值protected FIELDgetEntityValue(ENTITY entity) 读取实体值readConvert(BiFunction<ENTITY, Object, FIELD> readConvertFunction) voidreadOutCell(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Cell cell, ENTITY entity) 读取单元格值protected voidsetCellValue(org.apache.poi.ss.usermodel.Cell cell, Object convertValue) 设置单元格值protected voidsetEntityValue(ENTITY entity, Object value) 赋值给实体writeConvert(BiFunction<ENTITY, FIELD, Object> writeConvertFunction) writeIntoCell(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Cell cell, ENTITY entity, int index) 值写入单元格从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.github.developframework.excel.ColumnDefinition
getColumnInfo
-
字段详细资料
-
columnInfo
-
writeConvertFunction
-
readConvertFunction
-
cellStyleKeyProvider
-
cellCommentInfo
-
-
构造器详细资料
-
AbstractColumnDefinition
-
-
方法详细资料
-
writeIntoCell
public Object writeIntoCell(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Cell cell, ENTITY entity, int index) 值写入单元格- 指定者:
writeIntoCell在接口中ColumnDefinition<ENTITY>- 参数:
workbook- 工作区cell- 单元格entity- 实体index- 实体索引- 返回:
- 字段值
-
readOutCell
public void readOutCell(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Cell cell, ENTITY entity) 读取单元格值- 指定者:
readOutCell在接口中ColumnDefinition<ENTITY>- 参数:
workbook- 工作区cell- 单元格entity- 实体
-
setCellValue
设置单元格值- 参数:
cell- 单元格convertValue- 转化值
-
getCellValue
读取单元格值- 参数:
cell- 单元格- 返回:
- 单元格值
-
setEntityValue
赋值给实体- 参数:
entity- 实体value- 值
-
getEntityValue
读取实体值- 参数:
entity- 实体- 返回:
- 实体字段值
-
columnWidth
列宽- 参数:
columnWidth- 列宽
-
configureCellStyle
public void configureCellStyle(org.apache.poi.ss.usermodel.Cell cell, CellStyleManager cellStyleManager, ENTITY entity, Object value) 从接口复制的说明:ColumnDefinition配置单元格格式- 指定者:
configureCellStyle在接口中ColumnDefinition<ENTITY>
-
determineCellStyleKey
根据值决定单元格格式键 -
writeConvert
public AbstractColumnDefinition<ENTITY,FIELD> writeConvert(BiFunction<ENTITY, FIELD, Object> writeConvertFunction) -
readConvert
public AbstractColumnDefinition<ENTITY,FIELD> readConvert(BiFunction<ENTITY, Object, FIELD> readConvertFunction) -
cellStyleKey
public AbstractColumnDefinition<ENTITY,FIELD> cellStyleKey(CellStyleKeyProvider<ENTITY> cellStyleKeyProvider) -
comment
public AbstractColumnDefinition<ENTITY,FIELD> comment(String author, String commentField, BiFunction<org.apache.poi.ss.usermodel.Drawing, org.apache.poi.ss.usermodel.Cell, org.apache.poi.ss.usermodel.ClientAnchor> anchorFunction)
-