本文整理了Java中org.apache.poi.xssf.usermodel.XSSFTable.updateReferences()
方法的一些代码示例,展示了XSSFTable.updateReferences()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFTable.updateReferences()
方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFTable
类名称:XSSFTable
方法名:updateReferences
[英]Clears the cached values set by #getStartCellReference()and #getEndCellReference(). The next call to #getStartCellReference() and #getEndCellReference() will synchronize the cell references with the underlying CTTable
. Thus this method is inexpensive.
[中]清除由#getStartCellReference()和#getEndCellReference()设置的缓存值。对#getStartCellReference()和#getEndCellReference()的下一次调用将使单元格引用与基础CTTable
同步。因此,这种方法是廉价的。
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Remove a column from the table.
*
* @param column
* the column to remove
* @since 4.0.0
*/
public void removeColumn(XSSFTableColumn column) {
int columnIndex = getColumns().indexOf(column);
if (columnIndex >= 0) {
ctTable.getTableColumns().removeTableColumn(columnIndex);
updateReferences();
updateHeaders();
}
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Remove a column from the table.
*
* @param columnIndex
* the 0-based position of the column in the table
* @throws IllegalArgumentException
* if no column at the index exists or if the table has only a
* single column
* @since 4.0.0
*/
public void removeColumn(int columnIndex) {
if (columnIndex < 0 || columnIndex > getColumnCount() - 1) {
throw new IllegalArgumentException("Column index out of bounds");
}
if(getColumnCount() == 1) {
throw new IllegalArgumentException("Table must have at least one column");
}
CTTableColumns tableColumns = ctTable.getTableColumns();
tableColumns.removeTableColumn(columnIndex);
tableColumns.setCount(tableColumns.getTableColumnList().size());
updateReferences();
updateHeaders();
}
代码示例来源:origin: org.apache.poi/poi-ooxml
ctTable.getAutoFilter().setRef(ref);
updateReferences();
代码示例来源:origin: org.apache.poi/poi-ooxml
updateReferences();
updateHeaders();
代码示例来源:origin: org.apache.poi/poi-ooxml
updateReferences();
int dataRowCount = getDataRowCount();
if (dataRowCount == newDataRowCount) {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Remove a column from the table.
*
* @param column
* the column to remove
* @since 4.0.0
*/
public void removeColumn(XSSFTableColumn column) {
int columnIndex = getColumns().indexOf(column);
if (columnIndex >= 0) {
ctTable.getTableColumns().removeTableColumn(columnIndex);
updateReferences();
updateHeaders();
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Remove a column from the table.
*
* @param columnIndex
* the 0-based position of the column in the table
* @throws IllegalArgumentException
* if no column at the index exists or if the table has only a
* single column
* @since 4.0.0
*/
public void removeColumn(int columnIndex) {
if (columnIndex < 0 || columnIndex > getColumnCount() - 1) {
throw new IllegalArgumentException("Column index out of bounds");
}
if(getColumnCount() == 1) {
throw new IllegalArgumentException("Table must have at least one column");
}
CTTableColumns tableColumns = ctTable.getTableColumns();
tableColumns.removeTableColumn(columnIndex);
tableColumns.setCount(tableColumns.getTableColumnList().size());
updateReferences();
updateHeaders();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
ctTable.getAutoFilter().setRef(ref);
updateReferences();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
updateReferences();
updateHeaders();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
updateReferences();
int dataRowCount = getDataRowCount();
if (dataRowCount == newDataRowCount) {
内容来源于网络,如有侵权,请联系作者删除!