public class Table extends Object
| Constructor and Description |
|---|
Table() |
Table(ExporterFormatter exporterFormatter) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object content) |
void |
add(Object content,
CellType cellType) |
void |
add(Object content,
int colspan) |
void |
add(Object content,
int colspan,
int rowspan) |
void |
add(Object content,
String cssStyle) |
void |
add(Object content,
String cssStyle,
int colspan) |
void |
add(Object content,
String cssStyle,
int colspan,
int rowspan) |
void |
add(Object content,
TableCellStyle tableCellStyle) |
void |
add(Object content,
TableCellStyle tableCellStyle,
int colspan) |
void |
add(Object content,
TableCellStyle tableCellStyle,
int colspan,
int rowspan) |
void |
add(Object content,
TableCellStyle tableCellStyle,
String cssStyle,
int colspan) |
void |
add(Object content,
TableCellStyle tableCellStyle,
String cssStyle,
int colspan,
int rowspan) |
void |
add(TableCell cell) |
void |
addAll(List<String> values) |
void |
addAll(List<TableCell> row,
List<TableCell> values) |
void |
addAllCells(List<TableCell> values) |
void |
addNewRow() |
void |
addNewRow(List<TableCell> row) |
void |
addOnNewRow(TableCell cell) |
void |
addOnRow(TableCell cell,
Integer row) |
void |
concatenateTableBelow(Table table) |
void |
concatenateTableOnRight(Table table) |
List<List<TableCell>> |
getCells() |
ExporterFormatter |
getExporterFormatter() |
TableCell |
getLastCell() |
String |
getLastCellContent() |
Integer |
getLastColumnIndex(List<TableCell> row) |
List<TableCell> |
getLastRow() |
Integer |
getLastRowIndex() |
int |
getMinOrMaxOrActualCellWidth(int value) |
int |
getNextColumnIndexOfLastRow() |
String |
getStringMatrixAsString(List<List<String>> matrix) |
TableCellStyle |
getTableCellStyleDefaultBody() |
List<TableCellStyle> |
getTableCellStyles() |
String |
getTitle() |
boolean |
isAutoSizeColumnSheet()
Este método identifica se ao escrever as colunas da planilha deve ser
utilizado o método
autoSizeColumn do objeto
org.apache.poi.ss.usermodel.Sheet. |
org.apache.poi.hssf.util.HSSFColor |
newCustomColor(org.apache.poi.hssf.util.HSSFColor replaceColor,
Color newColor) |
void |
removeFirstRow() |
void |
removeInitialRows(int numberRows) |
void |
replace(TableCell cell,
Integer row,
Integer column) |
void |
replaceLastCell(TableCell cell) |
void |
replaceLastCellContent(String content) |
void |
replaceLastColumn(List<TableCell> row,
TableCell cell) |
void |
setAutoSizeColumnSheet(boolean autoSizeColumnSheet) |
void |
setCells(List<List<TableCell>> cells) |
void |
setExporterFormatter(ExporterFormatter exporterFormatter) |
void |
setTableCellStyleDefaultBody(TableCellStyle tableCellStyleDefaultBody) |
void |
setTitle(String title) |
org.apache.poi.ss.usermodel.Workbook |
toHSSFWorkBook() |
List<List<String>> |
toStringMatrix() |
List<List<TableCell>> |
toTableCellMatrix() |
org.apache.poi.ss.usermodel.Workbook |
toWorkBook(org.apache.poi.ss.usermodel.Workbook wb) |
org.apache.poi.ss.usermodel.Workbook |
toXSSFWorkBook() |
Table |
withCell(Object content) |
Table |
withCell(Object content,
TableCellStyle tableCellStyle) |
Table |
withCell(Object content,
TableCellStyle tableCellStyle,
int colspan) |
Table |
withCell(TableCell tableCell) |
Table |
withNewRow() |
public Table()
public Table(ExporterFormatter exporterFormatter)
public void replaceLastCell(TableCell cell)
public TableCell getLastCell()
public String getLastCellContent()
public void replaceLastCellContent(String content)
public Integer getLastRowIndex()
public void add(TableCell cell)
public void add(Object content)
public void add(Object content, TableCellStyle tableCellStyle)
public void add(Object content, TableCellStyle tableCellStyle, int colspan)
public void add(Object content, TableCellStyle tableCellStyle, int colspan, int rowspan)
public void add(Object content, TableCellStyle tableCellStyle, String cssStyle, int colspan)
public void add(Object content, TableCellStyle tableCellStyle, String cssStyle, int colspan, int rowspan)
public void add(Object content, int colspan)
public void add(Object content, int colspan, int rowspan)
public void addOnNewRow(TableCell cell)
public void addNewRow()
public void removeFirstRow()
public void removeInitialRows(int numberRows)
public org.apache.poi.ss.usermodel.Workbook toXSSFWorkBook()
public org.apache.poi.ss.usermodel.Workbook toHSSFWorkBook()
public org.apache.poi.ss.usermodel.Workbook toWorkBook(org.apache.poi.ss.usermodel.Workbook wb)
public void concatenateTableOnRight(Table table)
public void concatenateTableBelow(Table table)
public String getTitle()
public void setTitle(String title)
public int getNextColumnIndexOfLastRow()
public boolean isAutoSizeColumnSheet()
Este método identifica se ao escrever as colunas da planilha deve ser
utilizado o método autoSizeColumn do objeto
org.apache.poi.ss.usermodel.Sheet.
Se retornar false as colunas serão redimencionadas realizando um cálculo considerando o maior número de caracteres existente em uma coluna
true caso esteja configurado auto size. false caso contráriopublic void setAutoSizeColumnSheet(boolean autoSizeColumnSheet)
public ExporterFormatter getExporterFormatter()
public void setTableCellStyleDefaultBody(TableCellStyle tableCellStyleDefaultBody)
public TableCellStyle getTableCellStyleDefaultBody()
public void setExporterFormatter(ExporterFormatter exporterFormatter)
public Table withNewRow()
public Table withCell(Object content, TableCellStyle tableCellStyle)
public Table withCell(Object content, TableCellStyle tableCellStyle, int colspan)
public List<TableCellStyle> getTableCellStyles()
public org.apache.poi.hssf.util.HSSFColor newCustomColor(org.apache.poi.hssf.util.HSSFColor replaceColor,
Color newColor)
public int getMinOrMaxOrActualCellWidth(int value)
Copyright © 2018 TecSinapse. All rights reserved.