Example usage for com.google.gwt.gen2.table.event.client PageLoadEvent PageLoadEvent

List of usage examples for com.google.gwt.gen2.table.event.client PageLoadEvent PageLoadEvent

Introduction

In this page you can find the example usage for com.google.gwt.gen2.table.event.client PageLoadEvent PageLoadEvent.

Prototype

public PageLoadEvent(int page) 

Source Link

Document

Construct a new PageLoadEvent .

Usage

From source file:edu.caltech.ipac.firefly.ui.table.SelectionTable.java

@Override
protected void onDataTableRendered() {

    if (getPageSize() > 200) {
        // large page size:  do fast rendering
        if (!fillWidthPending && isAttached() && getResizePolicy() == ResizePolicy.FILL_WIDTH) {
            fillWidthPending = true;//from  w ww  .  j  av  a2  s.c  o m
            DeferredCommand.addCommand(new Command() {
                public void execute() {
                    fillWidthPending = false;
                    fillWidth();
                }
            });
        }
        resizeTablesVertically();
        fireEvent(new PageLoadEvent(getCurrentPage()));
    } else {
        super.onDataTableRendered();
    }
}