com.google.gwt.view.client
Interface ListView<T>

Type Parameters:
T - the data type of each row
All Known Subinterfaces:
PagingListView<T>
All Known Implementing Classes:
CellList, CellTable

public interface ListView<T>

A list view.

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


Nested Class Summary
static interface ListView.Delegate<T>
          A list view delegate, implemented by classes that supply data to a view.
 
Method Summary
 Range getRange()
          Get the range that this view is displaying.
 boolean isDataSizeExact()
          Returns the value of the 'isExact' parameter of the most recent call to setDataSize(int, boolean).
 void setData(int start, int length, java.util.List<T> values)
          Set a range of data in the view.
 void setDataSize(int size, boolean isExact)
          Set the total data size of the underlying data.
 void setDelegate(ListView.Delegate<T> delegate)
          Set the ListView.Delegate that responds to changes in the range.
 void setSelectionModel(SelectionModel<? super T> selectionModel)
          Set the SelectionModel used by this ListView.
 

Method Detail

isDataSizeExact

boolean isDataSizeExact()
Returns the value of the 'isExact' parameter of the most recent call to setDataSize(int, boolean).


getRange

Range getRange()
Get the range that this view is displaying.

Returns:
the range

setData

void setData(int start,
             int length,
             java.util.List<T> values)
Set a range of data in the view.

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

setDataSize

void setDataSize(int size,
                 boolean isExact)
Set the total data size of the underlying data.

Parameters:
size - the total data size
isExact - true if the size is exact, false if it is an estimate

setDelegate

void setDelegate(ListView.Delegate<T> delegate)
Set the ListView.Delegate that responds to changes in the range.

Parameters:
delegate - the ListView.Delegate

setSelectionModel

void setSelectionModel(SelectionModel<? super T> selectionModel)
Set the SelectionModel used by this ListView.

Parameters:
selectionModel - the SelectionModel