org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.getPageCount()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(159)

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

DataTable.getPageCount介绍

暂无

代码示例

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

@Override
public boolean isVisible() {
  return getTable().getPageCount() > 1;
}

代码示例来源:origin: org.artifactory/artifactory-web-common

@Override
  public boolean isVisible() {
    return super.isVisible() && getTable().getPageCount() > displayRequiredPageAmount;
  }
}

代码示例来源:origin: theonedev/onedev

/** {@inheritDoc} */
  @Override
  protected void onConfigure()
  {
    super.onConfigure();
    setVisible(getTable().getPageCount() > 1);
  }
}

代码示例来源:origin: com.norconex.commons/norconex-commons-wicket

@Override
  protected void onConfigure() {
    super.onConfigure();
    setVisible(getTable().getPageCount() > 1);
  }
}

代码示例来源:origin: apache/wicket

/** {@inheritDoc} */
  @Override
  protected void onConfigure()
  {
    super.onConfigure();
    setVisible(getTable().getPageCount() > 1);
  }
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/** {@inheritDoc} */
  @Override
  protected void onBeforeRender()
  {
    setVisible(getTable().getPageCount() > 1);
    super.onBeforeRender();
  }
}

代码示例来源:origin: org.opensingular/wicket-utils

@Override
  protected void onConfigure() {
    super.onConfigure();
    itensPerPageSelector.setVisible(getTable().getItemCount() > getInitialRowsPerPage());
    paginator.setVisible(getTable().getPageCount() > 1);

    /* if at least one control is visible, the toolbar must be visible. if none is visible there is no need for the toolbar.*/
    boolean toolbarVisible = getTable().getPageCount() > 1;
    toolbarVisible |= itensPerPageSelector.isVisible();
    toolbarVisible |= paginator.isVisible();

    this.setVisible(toolbarVisible);
  }
}

代码示例来源:origin: org.opensingular/singular-wicket-utils

@Override
protected void onConfigure() {
  super.onConfigure();
  itensPerPageSelector.setVisible(getTable().getItemCount() > getInitialRowsPerPage());
  paginator.setVisible(getTable().getPageCount() > 1);
  /* if at least one control is visible, the toolbar must be visible. if none is visible there is no need for the toolbar.*/
  boolean toolbarVisible = getTable().getPageCount() > 1;
  toolbarVisible |= itensPerPageSelector.isVisible();
  toolbarVisible |= paginator.isVisible();
  countContainer.setVisible(toolbarVisible);
  if (countContainer.isVisible()) {
    String messageCount = String.format("Exibindo %d a %d de %d registros", getNumberOfFirstElement(), getNumberOfLastElement(), getTable().getItemCount());
    counterLabelModel.setObject(messageCount);
  }
  this.setVisible(toolbarVisible);
}

相关文章