com.google.gwt.view.client
Class AsyncListViewAdapter<T>

java.lang.Object
  extended by com.google.gwt.view.client.AbstractListViewAdapter<T>
      extended by com.google.gwt.view.client.AsyncListViewAdapter<T>
Type Parameters:
T - the data type of records in the list
All Implemented Interfaces:
ProvidesKey<T>

public abstract class AsyncListViewAdapter<T>
extends AbstractListViewAdapter<T>

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

Note: This class is new and its interface subject to change.


Constructor Summary
AsyncListViewAdapter()
           
 
Method Summary
 void updateDataSize(int size, boolean exact)
          Inform the views of the total number of items that are available.
 void updateViewData(int start, int length, java.util.List<T> values)
          Inform the views of the new data.
 
Methods inherited from class com.google.gwt.view.client.AbstractListViewAdapter
addView, getKey, getKeyProvider, getRanges, getViews, removeView, setKeyProvider
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncListViewAdapter

public AsyncListViewAdapter()
Method Detail

updateDataSize

public void updateDataSize(int size,
                           boolean exact)
Inform the views of the total number of items that are available.

Parameters:
size - the new size
exact - true if the size is exact, false if it is a guess

updateViewData

public void updateViewData(int start,
                           int length,
                           java.util.List<T> values)
Inform the views of the new data.

Parameters:
start - the start index
length - the length of the data
values - the data values