public abstract class AbstractSheet extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.poi.ss.usermodel.CellStyle |
checkboxStyle |
protected org.apache.poi.ss.usermodel.CellStyle |
dateStyle |
protected int |
firstCellNum |
protected int |
firstRowNum |
protected static short |
FONT_SIZE |
protected org.apache.poi.ss.usermodel.CellStyle |
greenWrapped |
protected int |
lastRowNum |
protected org.apache.poi.ss.usermodel.CellStyle |
redWrapped |
protected org.apache.poi.ss.usermodel.Sheet |
sheet |
protected org.apache.poi.ss.usermodel.Workbook |
workbook |
protected org.apache.poi.ss.usermodel.CellStyle |
yellowWrapped |
| Constructor and Description |
|---|
AbstractSheet(org.apache.poi.ss.usermodel.Workbook workbook,
String sheetName) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.poi.ss.usermodel.Row |
addRow()
Add a new row to the end of the sheet
|
void |
clear()
Clears all data from the worksheet
|
static org.apache.poi.ss.usermodel.CellStyle |
createCenterStyle(org.apache.poi.ss.usermodel.Workbook wb) |
static org.apache.poi.ss.usermodel.CellStyle |
createHeaderStyle(org.apache.poi.ss.usermodel.Workbook wb) |
static org.apache.poi.ss.usermodel.CellStyle |
createLeftWrapStyle(org.apache.poi.ss.usermodel.Workbook wb) |
int |
getFirstDataRow() |
int |
getNumDataRows() |
org.apache.poi.ss.usermodel.Sheet |
getSheet() |
void |
resizeRows()
resize the rows for a best fit.
|
abstract String |
verify() |
protected static final short FONT_SIZE
protected org.apache.poi.ss.usermodel.CellStyle checkboxStyle
protected org.apache.poi.ss.usermodel.CellStyle dateStyle
protected org.apache.poi.ss.usermodel.CellStyle greenWrapped
protected org.apache.poi.ss.usermodel.CellStyle redWrapped
protected org.apache.poi.ss.usermodel.CellStyle yellowWrapped
protected org.apache.poi.ss.usermodel.Workbook workbook
protected org.apache.poi.ss.usermodel.Sheet sheet
protected int lastRowNum
protected int firstCellNum
protected int firstRowNum
public AbstractSheet(org.apache.poi.ss.usermodel.Workbook workbook,
String sheetName)
workbook - sheetName - protected org.apache.poi.ss.usermodel.Row addRow()
public void clear()
public int getFirstDataRow()
public int getNumDataRows()
public org.apache.poi.ss.usermodel.Sheet getSheet()
public abstract String verify()
public static org.apache.poi.ss.usermodel.CellStyle createHeaderStyle(org.apache.poi.ss.usermodel.Workbook wb)
public static org.apache.poi.ss.usermodel.CellStyle createLeftWrapStyle(org.apache.poi.ss.usermodel.Workbook wb)
public static org.apache.poi.ss.usermodel.CellStyle createCenterStyle(org.apache.poi.ss.usermodel.Workbook wb)
public void resizeRows()
Copyright © 2017 Linux Foundation. All Rights Reserved.