java.lang.Object | ||
↳ | com.google.gwt.view.client.AbstractDataProvider<T> | |
↳ | com.google.gwt.view.client.ListDataProvider<T> |
A concrete subclass of AbstractDataProvider
that is backed by an
in-memory list.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty model.
| |||||||||||
Creates a list model that wraps the given list.
| |||||||||||
Creates an empty list model that wraps the given collection.
| |||||||||||
Creates a list model that wraps the given list.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Flush pending list changes to the displays.
| |||||||||||
Get the list that backs this model.
| |||||||||||
Refresh all of the displays listening to this adapter.
| |||||||||||
Replace this model's list.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a display changes its range of interest.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.view.client.AbstractDataProvider
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.view.client.ProvidesKey
|
Creates an empty model.
Creates a list model that wraps the given list. Changes to the wrapped list must be made via this model in order to be correctly applied to displays.
listToWrap | the List to be wrapped |
---|
Creates an empty list model that wraps the given collection.
keyProvider | an instance of ProvidesKey |
---|
Creates a list model that wraps the given list. Changes to the wrapped list must be made via this model in order to be correctly applied to displays.
listToWrap | the List to be wrapped |
---|---|
keyProvider | an instance of ProvidesKey |
Flush pending list changes to the displays. By default, displays are informed of modifications to the underlying list at the end of the current event loop, which makes it possible to perform multiple operations synchronously without repeatedly refreshing the displays. This method can be called to flush the changes immediately instead of waiting until the end of the current event loop.
Get the list that backs this model. Changes to the list will be reflected in the model.
Refresh all of the displays listening to this adapter.
Called when a display changes its range of interest.
display | the display whose range has changed |
---|