public interface Table
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
isStructuredReference
Regular expression matching a Structured Reference (Table syntax) for XSSF table expressions.
(与 XSSF 表表达式的结构化引用(表语法)匹配的正则表达式。)
|
Modifier and Type | Method and Description |
---|---|
default boolean |
contains(Cell cell)
checks if the given cell is part of the table.
(检查给定的单元格是否是表格的一部分。)
|
boolean |
contains(CellReference cell)
checks if the given cell is part of the table.
(检查给定的单元格是否是表格的一部分。)
|
int |
findColumnIndex(java.lang.String columnHeader)
Returns the index of a given named column in the table (names are case insensitive in XSSF).
(返回表中给定命名列的索引(名称在 XSSF 中不区分大小写)。)
|
int |
getEndColIndex()
Get the bottom-right column index on the sheet
(获取工作表右下角的列索引)
|
int |
getEndRowIndex()
Get the bottom-right row index
(获取右下角的行索引)
|
int |
getHeaderRowCount() |
java.lang.String |
getName()
Get the name of the table.
(获取表的名称。)
|
java.lang.String |
getSheetName()
Returns the sheet name that the table belongs to.
(返回表所属的工作表名称。)
|
int |
getStartColIndex()
Get the top-left column index relative to the sheet
(获取相对于工作表的左上角列索引)
|
int |
getStartRowIndex()
Get the top-left row index on the sheet
(获取工作表左上角的行索引)
|
TableStyleInfo |
getStyle() |
java.lang.String |
getStyleName() |
int |
getTotalsRowCount() |
boolean |
isHasTotalsRow()
Note: This is misleading.
(注意:这是误导。)
|
static final java.util.regex.Pattern isStructuredReference
int getStartColIndex()
int getStartRowIndex()
int getEndColIndex()
int getEndRowIndex()
java.lang.String getName()
java.lang.String getStyleName()
int findColumnIndex(java.lang.String columnHeader)
XSSFTable.updateHeaders()
is called to reset the cache.
(返回表中给定命名列的索引(名称在 XSSF 中不区分大小写)。请注意,此列表会延迟加载和缓存以提高性能。除非调用 XSSFTable.updateHeaders() 来重置缓存,否则对基础表结构的更改不会反映在以后的调用中。)
columnHeader
- the column header name to get the table column index of
(columnHeader - 获取表列索引的列标题名称)
columnHeader
(columnHeader对应的列索引)
java.lang.String getSheetName()
boolean isHasTotalsRow()
getTotalsRowCount()
> 0 to decide whether or not the totals row is visible.
(注意:这是误导。 OOXML 规范表明,如果总计行曾经显示过,而不是当前是否显示,则为真。使用 getTotalsRowCount() > 0 来决定总计行是否可见。)
getTotalsRowCount()
int getTotalsRowCount()
int getHeaderRowCount()
TableStyleInfo getStyle()
default boolean contains(Cell cell)
cell
-
(细胞 -)
(prefered, faster execution and handles undefined cells)
boolean contains(CellReference cell)
cell
- reference to a possibly undefined cell location
(单元格 - 对可能未定义的单元格位置的引用)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.