@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface ExcelField
| 限定符和类型 | 可选元素和说明 |
|---|---|
Merge |
autoMerge
Whether to enable automatic vertical merge when export
|
ExcelColor[] |
color
Color index array, If the size of the color array is smaller than the number of series in the header,
all subsequent headers will use the last one in the color array
|
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 array, If the size of the color array is smaller than the number of series in the header,
all subsequent headers will use the last one in the color array
|
String |
format
Cell format
The cell format of the current column is set when exporting,
which defaults to general,
Some commonly used formats are {
------- @ as text
------- 0 as integer
------- 0.00 is two decimal places
------- yyyy-MM-dd as 年-月-日
}
See Excel's official cell format for more information
|
int |
order
List header sort defaults to the order in which entity fields appear.
|
boolean |
required
Is the cell content required when importing?
|
String |
title
The header above the Excel column that will be concatenated with the real header name ,
when imported to match the header in the Excel file to an Excel column header matches the Excel column
with the header based on the actual header name
|
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 String title
public abstract int order
public abstract String format
------- @ as text ------- 0 as integer ------- 0.00 is two decimal places ------- yyyy-MM-dd as 年-月-日 } See Excel's official cell format for more information
public abstract Merge autoMerge
public abstract boolean required
ExcelEmptyReadListener to itpublic abstract boolean trim
public abstract Class<? extends DataConvert<?>> convert
DataConvertpublic abstract ExcelColor[] color
ExcelColorpublic abstract ExcelColor[] fontColor
ExcelColorCopyright © 2021. All rights reserved.