本文整理了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
暂无
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!