public abstract class AbstractExcelExportStyler extends Object implements IExcelExportStyler
Modifier and Type | Field and Description |
---|---|
protected static short |
STRING_FORMAT |
protected org.apache.poi.ss.usermodel.CellStyle |
stringNoneStyle |
protected org.apache.poi.ss.usermodel.CellStyle |
stringNoneWrapStyle |
protected org.apache.poi.ss.usermodel.CellStyle |
stringSeptailStyle |
protected org.apache.poi.ss.usermodel.CellStyle |
stringSeptailWrapStyle |
protected org.apache.poi.ss.usermodel.Workbook |
workbook |
Constructor and Description |
---|
AbstractExcelExportStyler() |
Modifier and Type | Method and Description |
---|---|
protected void |
createStyles(org.apache.poi.ss.usermodel.Workbook workbook) |
org.apache.poi.ss.usermodel.CellStyle |
getStyles(boolean noneStyler,
ExcelExportEntity entity)
获取样式方法
|
org.apache.poi.ss.usermodel.CellStyle |
getStyles(org.apache.poi.ss.usermodel.Cell cell,
int dataRow,
ExcelExportEntity entity,
Object obj,
Object data)
获取样式方法
|
org.apache.poi.ss.usermodel.CellStyle |
getTemplateStyles(boolean isSingle,
ExcelForEachParams excelForEachParams)
模板使用的样式设置
|
org.apache.poi.ss.usermodel.CellStyle |
stringNoneStyle(org.apache.poi.ss.usermodel.Workbook workbook,
boolean isWarp) |
org.apache.poi.ss.usermodel.CellStyle |
stringSeptailStyle(org.apache.poi.ss.usermodel.Workbook workbook,
boolean isWarp) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeaderStyle, getTitleStyle
protected org.apache.poi.ss.usermodel.CellStyle stringNoneStyle
protected org.apache.poi.ss.usermodel.CellStyle stringNoneWrapStyle
protected org.apache.poi.ss.usermodel.CellStyle stringSeptailStyle
protected org.apache.poi.ss.usermodel.CellStyle stringSeptailWrapStyle
protected org.apache.poi.ss.usermodel.Workbook workbook
protected static final short STRING_FORMAT
protected void createStyles(org.apache.poi.ss.usermodel.Workbook workbook)
public org.apache.poi.ss.usermodel.CellStyle getStyles(boolean noneStyler, ExcelExportEntity entity)
IExcelExportStyler
getStyles
in interface IExcelExportStyler
public org.apache.poi.ss.usermodel.CellStyle getStyles(org.apache.poi.ss.usermodel.Cell cell, int dataRow, ExcelExportEntity entity, Object obj, Object data)
IExcelExportStyler
getStyles
in interface IExcelExportStyler
dataRow
- 数据行obj
- 对象data
- 数据public org.apache.poi.ss.usermodel.CellStyle stringNoneStyle(org.apache.poi.ss.usermodel.Workbook workbook, boolean isWarp)
public org.apache.poi.ss.usermodel.CellStyle stringSeptailStyle(org.apache.poi.ss.usermodel.Workbook workbook, boolean isWarp)
public org.apache.poi.ss.usermodel.CellStyle getTemplateStyles(boolean isSingle, ExcelForEachParams excelForEachParams)
IExcelExportStyler
getTemplateStyles
in interface IExcelExportStyler
Copyright © 2018 Lumer. All rights reserved.