Example usage for com.google.gwt.view.client ListDataProvider flush

List of usage examples for com.google.gwt.view.client ListDataProvider flush

Introduction

In this page you can find the example usage for com.google.gwt.view.client ListDataProvider flush.

Prototype

public void flush() 

Source Link

Document

Flush pending list changes to the displays.

Usage

From source file:org.gwtbootstrap3.demo.client.application.css.TablesView.java

License:Apache License

private void initMockData(final Pagination pagination, final SimplePager simplePager,
        final ListDataProvider<TableTestPojo> dataProvider) {
    for (int i = 0; i < 25; i++) {
        dataProvider.getList().add(new TableTestPojo("Test " + i, "Test " + i, "Test " + i));
    }/*from w w w.j  a v  a  2s  . c om*/
    dataProvider.flush();
    pagination.rebuild(simplePager);
}

From source file:org.obiba.opal.web.gwt.app.client.ui.Table.java

License:Open Source License

/**
 * Hack because of loading indicator does not work with data provider.
 * <p>NOTE: use the base class to set the temporary empty widget in order to preserve the real one {@link #setEmptyTableWidget} </p>
 */// ww w . j  a v  a2s.  co m
public void showLoadingIndicator(ListDataProvider<?> listDataProvider) {
    super.setEmptyTableWidget(getLoadingIndicator());
    setRowCount(0);
    listDataProvider.getList().clear();
    listDataProvider.flush();
    listDataProvider.refresh();
}