public abstract class AbstractOpenlTableExporter<T extends Model> extends Object implements OpenlTableWriter<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MARGIN |
static String |
DEFAULT_STRING_VALUE |
static Cursor |
TOP_LEFT_POSITION |
| Constructor and Description |
|---|
AbstractOpenlTableExporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMergedHeader(org.apache.poi.ss.usermodel.Sheet sheet,
Cursor cursor,
org.apache.poi.ss.usermodel.CellStyle style,
CellRangeSettings cellRangeSettings) |
org.apache.poi.ss.usermodel.Sheet |
export(Collection<T> models,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected abstract Cursor |
exportTable(T model,
Cursor position,
TableStyle tableStyle,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected void |
exportTables(Collection<T> models,
org.apache.poi.ss.usermodel.Sheet sheet) |
protected abstract String |
getExcelSheetName() |
protected Cursor |
getStartPosition() |
TableStyle |
getTableStyle() |
protected Cursor |
nextFreePosition(Cursor endPosition) |
void |
setTableStyle(TableStyle tableStyle) |
public static final Cursor TOP_LEFT_POSITION
public static final int DEFAULT_MARGIN
public static final String DEFAULT_STRING_VALUE
public org.apache.poi.ss.usermodel.Sheet export(Collection<T> models, org.apache.poi.ss.usermodel.Sheet sheet)
export in interface OpenlTableWriter<T extends Model>protected void exportTables(Collection<T> models, org.apache.poi.ss.usermodel.Sheet sheet)
public void addMergedHeader(org.apache.poi.ss.usermodel.Sheet sheet,
Cursor cursor,
org.apache.poi.ss.usermodel.CellStyle style,
CellRangeSettings cellRangeSettings)
protected abstract Cursor exportTable(T model, Cursor position, TableStyle tableStyle, org.apache.poi.ss.usermodel.Sheet sheet)
protected abstract String getExcelSheetName()
protected Cursor getStartPosition()
public TableStyle getTableStyle()
public void setTableStyle(TableStyle tableStyle)
Copyright © 2004–2021 OpenL Tablets. All rights reserved.