类 ExcelPropertyConfig
java.lang.Object
gu.sql2java.excel.config.ExcelPropertyConfig
- 所有已实现的接口:
PropertyConfig
-
构造器概要
构造器构造器说明ExcelPropertyConfig(ExcelColumn excelColumn) ExcelPropertyConfig(ExcelColumn excelColumn, String nestedName) ExcelPropertyConfig(ColumnConfig columnConfig) ExcelPropertyConfig(ColumnConfig columnConfig, String nestedName) ExcelPropertyConfig(PropertyDescriptor descriptor, String nestedName) 构造方法
先根据read/write方法定义 ExcelColumn 注解来获取excel导出定义ExcelPropertyConfig(Field field, String nestedName) ExcelPropertyConfig(String nestedName) ExcelPropertyConfig(String nestedName, String name) ExcelPropertyConfig(String name, String nestedName, int sort) 用户数据导入的构造方法 -
方法概要
修饰符和类型方法说明booleanorg.apache.poi.ss.usermodel.IndexedColorsgetColor()返回导出字体颜色,如果未定义则使用SheetConfig中的默认值getDataFormat(Class<?> type) getDataFormat(Object value) 返回指定值的数据格式org.apache.poi.ss.usermodel.IndexedColors返回单元格填充颜色,如果未定义则使用SheetConfig中的默认值org.apache.poi.ss.usermodel.HorizontalAlignment返回导出字段水平对齐方式,如果未定义则使用SheetConfig中的默认值返回EXCEL导入的字段对应的Java对象字段名inthashCode()从指定的对象读取属性的值voidsetColumnConfig(ColumnConfig columnConfig) 设置属性的Excel输入/输出字段配置对象voidsetNestedName(String nestedName) 设置属性的名字,多级属性名以.分割voidsetParent(SheetConfig parentConfig) 设置所属的Excel表输出全局配置toString()void将值写入指定的对象,输入参数为null则忽略
-
构造器详细资料
-
ExcelPropertyConfig
-
ExcelPropertyConfig
-
ExcelPropertyConfig
-
ExcelPropertyConfig
-
ExcelPropertyConfig
构造方法
先根据read/write方法定义 ExcelColumn 注解来获取excel导出定义- 参数:
descriptor-nestedName-
-
ExcelPropertyConfig
-
ExcelPropertyConfig
-
ExcelPropertyConfig
-
ExcelPropertyConfig
用户数据导入的构造方法- 参数:
name- 导入EXCEL数据字段名nestedName- 对应的对象字段名,可为.分割的嵌套名,为null忽略sort- 字段索引- 从以下版本开始:
- 3.29.0
-
-
方法详细资料
-
getColumnConfig
- 指定者:
getColumnConfig在接口中PropertyConfig- 返回:
- 返回属性的Excel输入/输出字段配置对象
-
setColumnConfig
从接口复制的说明:PropertyConfig设置属性的Excel输入/输出字段配置对象- 指定者:
setColumnConfig在接口中PropertyConfig
-
getNestedName
- 指定者:
getNestedName在接口中PropertyConfig- 返回:
- 返回属性的名字,不可为
null或空
-
setNestedName
从接口复制的说明:PropertyConfig设置属性的名字,多级属性名以.分割- 指定者:
setNestedName在接口中PropertyConfig
-
setParent
从接口复制的说明:PropertyConfig设置所属的Excel表输出全局配置- 指定者:
setParent在接口中PropertyConfig
-
readFrom
从接口复制的说明:PropertyConfig从指定的对象读取属性的值- 指定者:
readFrom在接口中PropertyConfig- 返回:
- 属性的值,输入对数为
null则返回null
-
writeTo
从接口复制的说明:PropertyConfig将值写入指定的对象,输入参数为null则忽略- 指定者:
writeTo在接口中PropertyConfig
-
getExcelColumnName
从接口复制的说明:PropertyConfig- 指定者:
getExcelColumnName在接口中PropertyConfig
-
getImportColumnName
从接口复制的说明:PropertyConfig返回EXCEL导入的字段对应的Java对象字段名- 指定者:
getImportColumnName在接口中PropertyConfig
-
getDataFormat
-
getDataFormat
从接口复制的说明:PropertyConfig返回指定值的数据格式- 指定者:
getDataFormat在接口中PropertyConfig- 返回:
- 输入参数为
null返回空字符串
-
getColor
public org.apache.poi.ss.usermodel.IndexedColors getColor()从接口复制的说明:PropertyConfig返回导出字体颜色,如果未定义则使用SheetConfig中的默认值- 指定者:
getColor在接口中PropertyConfig
-
getFillColor
public org.apache.poi.ss.usermodel.IndexedColors getFillColor()从接口复制的说明:PropertyConfig返回单元格填充颜色,如果未定义则使用SheetConfig中的默认值- 指定者:
getFillColor在接口中PropertyConfig
-
getHorizontalAlign
public org.apache.poi.ss.usermodel.HorizontalAlignment getHorizontalAlign()从接口复制的说明:PropertyConfig返回导出字段水平对齐方式,如果未定义则使用SheetConfig中的默认值- 指定者:
getHorizontalAlign在接口中PropertyConfig
-
hashCode
public int hashCode() -
equals
-
toString
-