org.apache.poi.xssf.usermodel.XSSFTable.getTotalsRowCount()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中org.apache.poi.xssf.usermodel.XSSFTable.getTotalsRowCount()方法的一些代码示例,展示了XSSFTable.getTotalsRowCount()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFTable.getTotalsRowCount()方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFTable
类名称:XSSFTable
方法名:getTotalsRowCount

XSSFTable.getTotalsRowCount介绍

暂无

代码示例

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Get the number of data rows in this table. This does not include any
 * header rows or totals rows.
 * 
 * Returns <code>0</code> if the start or end cell references are not set.
 * 
 * Does not track updates to underlying changes to CTTable To synchronize
 * with changes to the underlying CTTable, call {@link #updateReferences()}.
 * 
 * @return the number of data rows
 * @since 4.0.0
 */
public int getDataRowCount() {
  CellReference from = getStartCellReference();
  CellReference to = getEndCellReference();
  int rowCount = 0;
  if (from != null && to != null) {
    rowCount = (to.getRow() - from.getRow() + 1) - getHeaderRowCount()
        - getTotalsRowCount();
  }
  return rowCount;
}

代码示例来源:origin: org.apache.poi/poi-ooxml

int minimumRowCount = 1 + getHeaderRowCount() + getTotalsRowCount();
if (rowCount < minimumRowCount) {
  throw new IllegalArgumentException("AreaReference needs at least " + minimumRowCount

代码示例来源:origin: org.apache.poi/poi-ooxml

if (ctTable.isSetAutoFilter()) {
  String filterRef;
  int totalsRowCount = getTotalsRowCount();
  if (totalsRowCount == 0) {
    filterRef = ref;

代码示例来源:origin: org.apache.poi/poi-ooxml

int newTotalRowCount = getHeaderRowCount() + newDataRowCount + getTotalsRowCount();
CellReference newTableEnd = new CellReference(tableStart.getRow() + newTotalRowCount - 1,
    tableEnd.getCol());

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Get the number of data rows in this table. This does not include any
 * header rows or totals rows.
 * 
 * Returns <code>0</code> if the start or end cell references are not set.
 * 
 * Does not track updates to underlying changes to CTTable To synchronize
 * with changes to the underlying CTTable, call {@link #updateReferences()}.
 * 
 * @return the number of data rows
 * @since 4.0.0
 */
public int getDataRowCount() {
  CellReference from = getStartCellReference();
  CellReference to = getEndCellReference();
  int rowCount = 0;
  if (from != null && to != null) {
    rowCount = (to.getRow() - from.getRow() + 1) - getHeaderRowCount()
        - getTotalsRowCount();
  }
  return rowCount;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

int minimumRowCount = 1 + getHeaderRowCount() + getTotalsRowCount();
if (rowCount < minimumRowCount) {
  throw new IllegalArgumentException("AreaReference needs at least " + minimumRowCount

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

if (ctTable.isSetAutoFilter()) {
  String filterRef;
  int totalsRowCount = getTotalsRowCount();
  if (totalsRowCount == 0) {
    filterRef = ref;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

int newTotalRowCount = getHeaderRowCount() + newDataRowCount + getTotalsRowCount();
CellReference newTableEnd = new CellReference(tableStart.getRow() + newTotalRowCount - 1,
    tableEnd.getCol());

相关文章