@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
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?
|
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
------- @ 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.