public abstract class

AsyncDataProvider

extends AbstractDataProvider<T>
java.lang.Object
   ↳ com.google.gwt.view.client.AbstractDataProvider<T>
     ↳ com.google.gwt.view.client.AsyncDataProvider<T>

Class Overview

An implementation of AbstractDataProvider that allows the data to be modified.

Example

{@example com.google.gwt.examples.view.AsyncDataProviderExample}

Summary

Protected Constructors
AsyncDataProvider()
Constructs an AsyncDataProvider without a key provider.
AsyncDataProvider(ProvidesKey<T> keyProvider)
Constructs an AsyncDataProvider with the given key provider.
Public Methods
void updateRowCount(int size, boolean exact)
Inform the displays of the total number of items that are available.
void updateRowData(int start, List<T> values)
Inform the displays of the new data.
[Expand]
Inherited Methods
From class com.google.gwt.view.client.AbstractDataProvider
From class java.lang.Object
From interface com.google.gwt.view.client.ProvidesKey

Protected Constructors

protected AsyncDataProvider ()

Constructs an AsyncDataProvider without a key provider.

protected AsyncDataProvider (ProvidesKey<T> keyProvider)

Constructs an AsyncDataProvider with the given key provider.

Parameters
keyProvider an instance of ProvidesKey, or null if the record object should act as its own key

Public Methods

public void updateRowCount (int size, boolean exact)

Inform the displays of the total number of items that are available.

Parameters
size the new total row count
exact true if the count is exact, false if it is an estimate

public void updateRowData (int start, List<T> values)

Inform the displays of the new data.

Parameters
start the start index
values the data values