Example usage for org.apache.wicket.markup.html.navigation.paging IPageableItems setItemsPerPage

List of usage examples for org.apache.wicket.markup.html.navigation.paging IPageableItems setItemsPerPage

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.navigation.paging IPageableItems setItemsPerPage.

Prototype

void setItemsPerPage(long itemsPerPage);

Source Link

Document

set the maximum number of visible items per page

Usage

From source file:com.schat.components.paging.bootstrap.BootstrapPagingNavigator.java

License:Apache License

public BootstrapPagingNavigator(String id, IPageableItems pageable, PagerConfigurator configurator) {
    super(id, pageable);
    initPageSizeChoice(pageable, configurator);
    if (configurator == null) {
        throw new IllegalArgumentException("Null coinfigurator");
    }//ww w  .j a v a2  s. c  om
    pageable.setItemsPerPage(configurator.getInitialItemsPerPage());
}