@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface ExcelField
| 限定符和类型 | 可选元素和说明 |
|---|---|
Merge |
autoMerge
Whether to enable automatic vertical merge when export
|
ExcelColor |
color
Color index, can control the current header fill color,
default use style listener color configuration
|
Class<? extends DataConvert<?>> |
convert
Data convert, which you can use to change data during import and export,
before the cell are populated and converted to entity field
|
ExcelColor |
fontColor
Font color index, can control the current header value color,
default use style listener color configuration
|
String |
format
The format of the cells under the current table header when exported,
default to normal format
|
int |
order
List header sort, if not set will default entity property order
|
boolean |
required
Whether the contents in the cell below the current header are required when importing
|
boolean |
trim
Remove white space on both sides of the string when importing
|
String[] |
value
Array of Excel header names.
|
int |
width
Column width of the excel header
|
public abstract String[] value
public abstract int order
public abstract String format
public abstract Merge autoMerge
public abstract boolean required
public abstract boolean trim
public abstract Class<? extends DataConvert<?>> convert
DataConvertpublic abstract ExcelColor color
ExcelColorpublic abstract ExcelColor fontColor
ExcelColorCopyright © 2020. All rights reserved.