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

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

Introduction

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

Prototype

@Override
    public HandlerRegistration addRowCountChangeHandler(RowCountChangeEvent.Handler handler) 

Source Link

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.
 *//*www .  ja  va2  s  .c  om*/
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 www  .  j av a  2s. 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;
}