java.lang.Object | |
↳ | com.google.gwt.view.client.AbstractDataProvider<T> |
Known Direct Subclasses |
A base implementation of a data source for HasData
implementations.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct an AbstractDataProvider without a key provider.
| |||||||||||
Construct an AbstractDataProvider with a given key provider.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a data display to this adapter.
| |||||||||||
Get the set of displays currently assigned to this adapter.
| |||||||||||
Get the key for a list item.
| |||||||||||
Get the
ProvidesKey that provides keys for list items. | |||||||||||
Get the current ranges of all displays.
| |||||||||||
Remove the given data display.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a display changes its range of interest.
| |||||||||||
Inform the displays of the total number of items that are available.
| |||||||||||
Informs a single display of new data.
| |||||||||||
Inform the displays of the new data.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.view.client.ProvidesKey
|
Construct an AbstractDataProvider without a key provider.
Construct an AbstractDataProvider with a given key provider.
keyProvider | a ProvidesKey object
|
---|
Adds a data display to this adapter. The current range of interest of the display will be populated with data.
display | a HasData .
|
---|
Get the set of displays currently assigned to this adapter.
HasData
Get the key for a list item. The default implementation returns the item itself.
item | the list item |
---|
Get the ProvidesKey
that provides keys for list items.
ProvidesKey
Remove the given data display.
display | a HasData instance |
---|
IllegalStateException | if the display is not present |
---|
Called when a display changes its range of interest.
display | the display whose range has changed |
---|
Inform the displays of the total number of items that are available.
count | the new total row count |
---|---|
exact | true if the count is exact, false if it is an estimate |
Informs a single display of new data.
display | the display to be updated |
---|---|
start | the start index |
values | the data values |
Inform the displays of the new data.
start | the start index |
---|---|
values | the data values |