public abstract static class ObjectAdapter.DataObserver extends Object
Constructor and Description |
---|
DataObserver() |
Modifier and Type | Method and Description |
---|---|
void |
onChanged()
Called whenever the ObjectAdapter's data has changed in some manner
outside of the set of changes covered by the other range-based change
notification methods.
|
void |
onItemRangeChanged(int positionStart,
int itemCount)
Called when a range of items in the ObjectAdapter has changed.
|
void |
onItemRangeInserted(int positionStart,
int itemCount)
Called when a range of items is inserted into the ObjectAdapter.
|
void |
onItemRangeRemoved(int positionStart,
int itemCount)
Called when a range of items is removed from the ObjectAdapter.
|
public void onChanged()
public void onItemRangeChanged(int positionStart, int itemCount)
positionStart
- The position of the first item that changed.itemCount
- The number of items changed.public void onItemRangeInserted(int positionStart, int itemCount)
positionStart
- The position of the first inserted item.itemCount
- The number of items inserted.public void onItemRangeRemoved(int positionStart, int itemCount)
positionStart
- The position of the first removed item.itemCount
- The number of items removed.