public class Table extends Object
| Constructor and Description |
|---|
Table() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Number content) |
void |
add(Number content,
boolean bold) |
void |
add(String content) |
void |
add(String content,
boolean bold) |
void |
add(String content,
CellType cellType) |
void |
add(String content,
ContentType contentType) |
void |
add(String content,
int colspan) |
void |
add(String content,
int colspan,
int rowspan) |
void |
add(String content,
String style) |
void |
add(String content,
String style,
int colspan) |
void |
add(String content,
String style,
int colspan,
int rowspan) |
void |
add(String content,
TableCellType tableCellType) |
void |
add(String content,
TableCellType tableCellType,
boolean bold) |
void |
add(String content,
TableCellType cellType,
ContentType contentType) |
void |
add(String content,
TableCellType tableCellType,
int colspan) |
void |
add(String content,
TableCellType tableCellType,
int colspan,
int rowspan) |
void |
add(String content,
TableCellType tableCellType,
String style,
int colspan) |
void |
add(String content,
TableCellType tableCellType,
String style,
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() |
TableCell |
getLastCell() |
String |
getLastCellContent() |
Integer |
getLastColumnIndex(List<TableCell> row) |
List<TableCell> |
getLastRow() |
Integer |
getLastRowIndex() |
int |
getNextColumnIndexOfLastRow() |
String |
getStringMatrixAsString(List<List<String>> matrix) |
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. |
void |
printString() |
void |
printStringMatrix(List<List<String>> matrix) |
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 |
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()
Deprecated.
use
Workbook toHSSFWorkBook() instead. |
org.apache.poi.ss.usermodel.Workbook |
toWorkBook(org.apache.poi.ss.usermodel.Workbook wb) |
org.apache.poi.ss.usermodel.Workbook |
toXSSFWorkBook() |
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(String content)
public void add(String content, boolean bold)
public void add(String content, TableCellType tableCellType)
public void add(String content, TableCellType tableCellType, boolean bold)
public void add(String content, TableCellType tableCellType, int colspan)
public void add(String content, TableCellType tableCellType, int colspan, int rowspan)
public void add(String content, TableCellType tableCellType, String style, int colspan)
public void add(String content, TableCellType tableCellType, String style, int colspan, int rowspan)
public void add(String content, int colspan)
public void add(String content, int colspan, int rowspan)
public void add(String content, TableCellType cellType, ContentType contentType)
public void add(String content, ContentType contentType)
public void add(Number content)
public void add(Number content, boolean bold)
public void addOnNewRow(TableCell cell)
public void addNewRow()
public void removeFirstRow()
public void removeInitialRows(int numberRows)
public void printString()
public org.apache.poi.ss.usermodel.Workbook toXSSFWorkBook()
public org.apache.poi.ss.usermodel.Workbook toHSSFWorkBook()
@Deprecated public org.apache.poi.ss.usermodel.Workbook toWorkBook()
Workbook toHSSFWorkBook() instead.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
public void setAutoSizeColumnSheet(boolean autoSizeColumnSheet)
Copyright © 2017 TecSinapse. All rights reserved.