| 限定符和类型 | 字段和说明 |
|---|---|
Comment |
cellComment |
int |
cellStyle
The style of cell, -1 if not be setting
|
Class<?> |
clazz
The cell type
|
Comment |
headerComment |
String |
key
The key of Map or field name of entry
|
String |
name
The header name
|
int |
o |
IntConversionProcessor |
processor
The int value conversion
|
boolean |
share
The string value is shared
|
StyleProcessor |
styleProcessor
The style conversion
|
Styles |
styles |
int |
type
0: standard 1:percentage 2:RMB
|
double |
width
The cell width
|
| 构造器和说明 |
|---|
Column(String name,
Class<?> clazz)
Constructor Column
|
Column(String name,
Class<?> clazz,
boolean share)
Constructor Column
|
Column(String name,
Class<?> clazz,
int cellStyle)
Constructor Column
|
Column(String name,
Class<?> clazz,
int cellStyle,
boolean share)
Constructor Column
|
Column(String name,
Class<?> clazz,
IntConversionProcessor processor)
Constructor Column
|
Column(String name,
Class<?> clazz,
IntConversionProcessor processor,
boolean share)
Constructor Column
|
Column(String name,
String key)
Constructor Column
|
Column(String name,
String key,
boolean share)
Constructor Column
|
Column(String name,
String key,
Class<?> clazz)
Constructor Column
|
Column(String name,
String key,
Class<?> clazz,
IntConversionProcessor processor)
Constructor Column
|
Column(String name,
String key,
int cellStyle)
Constructor Column
|
Column(String name,
String key,
int cellStyle,
boolean share)
Constructor Column
|
Column(String name,
String key,
IntConversionProcessor processor)
Constructor Column
|
Column(String name,
String key,
IntConversionProcessor processor,
boolean share)
Constructor Column
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCellStyle()
Setting the cell styles
|
int |
getCellStyle(Class<?> clazz)
Returns default style based on cell type
|
Class<?> |
getClazz()
Returns the cell type
|
String |
getName()
Returns the column name
|
NumFmt |
getNumFmt()
Returns the column
NumFmt |
double |
getWidth()
Returns the width of cell
|
boolean |
isIgnoreValue() |
boolean |
isShare()
Setting the cell is shared
|
Sheet.Column |
setCellStyle(Font font)
Setting the cell styles
|
Sheet.Column |
setCellStyle(Font font,
Border border)
Setting the cell styles
|
Sheet.Column |
setCellStyle(Font font,
Border border,
int horizontal)
Setting the cell styles
|
Sheet.Column |
setCellStyle(Font font,
Fill fill,
Border border)
Setting the cell styles
|
Sheet.Column |
setCellStyle(Font font,
Fill fill,
Border border,
int horizontal)
Setting the cell styles
|
Sheet.Column |
setCellStyle(Font font,
Fill fill,
Border border,
int vertical,
int horizontal)
Setting the cell styles
|
Sheet.Column |
setCellStyle(Font font,
int horizontal)
Setting the cell styles
|
Sheet.Column |
setCellStyle(int cellStyle)
Setting the cell's style
|
Sheet.Column |
setCellStyle(NumFmt numFmt,
Font font,
Fill fill,
Border border,
int vertical,
int horizontal)
Setting the cell styles
|
Sheet.Column |
setClazz(Class<?> clazz)
Setting the cell type
|
Sheet.Column |
setName(String name)
Setting the column name
|
Sheet.Column |
setNumFmt(String code)
Setting a cell format of number or date type
|
Sheet.Column |
setProcessor(IntConversionProcessor processor)
Setting the int value conversion
|
Sheet.Column |
setShare(boolean share)
Setting cell string value is shared
Shared is only valid for strings, and the converted cell type
is also valid for strings.
|
Sheet.Column |
setStyleProcessor(StyleProcessor styleProcessor)
Setting the style conversion
|
Sheet.Column |
setType(int type)
Setting the cell type
|
Sheet.Column |
setWidth(double width)
Setting the cell's width
|
public String key
public String name
public Class<?> clazz
public boolean share
public int type
public IntConversionProcessor processor
public StyleProcessor styleProcessor
public int cellStyle
public double width
public int o
public Styles styles
public Comment headerComment
public Comment cellComment
public Column(String name, Class<?> clazz)
name - the column nameclazz - the cell typepublic Column(String name, String key)
name - the column namekey - fieldpublic Column(String name, String key, Class<?> clazz)
name - the column namekey - fieldclazz - the cell typepublic Column(String name, Class<?> clazz, IntConversionProcessor processor)
name - the column nameclazz - the cell typeprocessor - The int value conversionpublic Column(String name, String key, IntConversionProcessor processor)
name - the column namekey - fieldprocessor - The int value conversionpublic Column(String name, Class<?> clazz, boolean share)
name - the column nameclazz - the cell typeshare - true:shared false:inline stringpublic Column(String name, String key, boolean share)
name - the column namekey - filedshare - true:shared false:inline stringpublic Column(String name, Class<?> clazz, IntConversionProcessor processor, boolean share)
name - the column nameclazz - the cell typeprocessor - The int value conversionshare - true:shared false:inline stringpublic Column(String name, String key, Class<?> clazz, IntConversionProcessor processor)
name - the column namekey - fieldclazz - type of cellprocessor - The int value conversionpublic Column(String name, String key, IntConversionProcessor processor, boolean share)
name - the column namekey - fieldprocessor - The int value conversionshare - true:shared false:inline stringpublic Column(String name, Class<?> clazz, int cellStyle)
name - the column nameclazz - the cell typecellStyle - the style of cellpublic Column(String name, String key, int cellStyle)
name - the column namekey - fieldcellStyle - the style of cellpublic Column(String name, Class<?> clazz, int cellStyle, boolean share)
name - the column nameclazz - the cell typecellStyle - the style of cellshare - true:shared false:inline stringpublic Sheet.Column setWidth(double width)
width - the width valueSheet.Columnpublic boolean isShare()
public Sheet.Column setType(int type)
type - the cell typeSheet.Columnpublic String getName()
public Sheet.Column setName(String name)
name - the column nameSheet.Columnpublic Class<?> getClazz()
public Sheet.Column setClazz(Class<?> clazz)
clazz - the cell typeSheet.Columnpublic Sheet.Column setProcessor(IntConversionProcessor processor)
processor - The int value conversionSheet.Columnpublic Sheet.Column setStyleProcessor(StyleProcessor styleProcessor)
styleProcessor - The style conversionSheet.Columnpublic double getWidth()
public Sheet.Column setCellStyle(int cellStyle)
cellStyle - the styles valueSheet.Columnpublic Sheet.Column setCellStyle(Font font)
font - the fontSheet.Columnpublic Sheet.Column setCellStyle(Font font, int horizontal)
font - the fonthorizontal - the horizontal styleSheet.Columnpublic Sheet.Column setCellStyle(Font font, Border border)
font - the fontborder - the border styleSheet.Columnpublic Sheet.Column setCellStyle(Font font, Border border, int horizontal)
font - the fontborder - the border stylehorizontal - the horizontal styleSheet.Columnpublic Sheet.Column setCellStyle(Font font, Fill fill, Border border)
font - the fontfill - the fill styleborder - the border styleSheet.Columnpublic Sheet.Column setCellStyle(Font font, Fill fill, Border border, int horizontal)
font - the fontfill - the fill styleborder - the border stylehorizontal - the horizontal styleSheet.Columnpublic Sheet.Column setCellStyle(Font font, Fill fill, Border border, int vertical, int horizontal)
font - the fontfill - the fill styleborder - the border stylevertical - the vertical stylehorizontal - the horizontal styleSheet.Columnpublic Sheet.Column setCellStyle(NumFmt numFmt, Font font, Fill fill, Border border, int vertical, int horizontal)
numFmt - the number formatfont - the fontfill - the fill styleborder - the border stylevertical - the vertical stylehorizontal - the horizontal styleSheet.Columnpublic Sheet.Column setShare(boolean share)
share - true:shared false:inline stringSheet.Columnpublic Sheet.Column setNumFmt(String code)
code - the format stringSheet.Columnpublic int getCellStyle(Class<?> clazz)
clazz - the cell typepublic int getCellStyle()
public boolean isIgnoreValue()
Copyright © 2020. All rights reserved.