Example usage for com.google.gwt.user.cellview.client AbstractHasData setPageSize

List of usage examples for com.google.gwt.user.cellview.client AbstractHasData setPageSize

Introduction

In this page you can find the example usage for com.google.gwt.user.cellview.client AbstractHasData setPageSize.

Prototype

public final void setPageSize(int pageSize) 

Source Link

Document

Set the number of rows per page and refresh the view.

Usage

From source file:org.hudsonci.maven.plugin.ui.gwt.buildinfo.internal.BuildSummaryViewImpl.java

License:Open Source License

/**
 * @return the view passed in for method chaining.
 *//*  w  w  w  .j  a  v  a 2  s.  c  o  m*/
private <T> AbstractHasData<T> initModuleSummary(final AbstractHasData<T> moduleView) {
    moduleView.addRowCountChangeHandler(new RowCountChangeEvent.Handler() {
        public void onRowCountChange(RowCountChangeEvent event) {
            moduleView.setPageSize(event.getNewRowCount());
        }
    });

    return moduleView;
}

From source file:org.hudsonci.maven.plugin.ui.gwt.buildinfo.internal.ModuleInfoPickerTableView.java

License:Open Source License

/**
 * @return the view passed in for method chaining.
 *//*from w w  w.  j a  v a2 s .co m*/
private <T> AbstractHasData<T> init(final AbstractHasData<T> moduleView) {
    moduleView.addRowCountChangeHandler(new RowCountChangeEvent.Handler() {
        public void onRowCountChange(RowCountChangeEvent event) {
            moduleView.setPageSize(event.getNewRowCount());
        }
    });

    return moduleView;
}