public class ListChangeRegistry extends CallbackRegistry<ObservableList.OnListChangedCallback,ObservableList,android.databinding.ListChangeRegistry.ListChanges>
CallbackRegistry.NotifierCallback<C,T,A>
Constructor and Description |
---|
ListChangeRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
notifyCallbacks(ObservableList sender,
int notificationType,
android.databinding.ListChangeRegistry.ListChanges listChanges)
Notify all callbacks.
|
void |
notifyChanged(ObservableList list)
Notify registered callbacks that there was an unknown or whole-list change.
|
void |
notifyChanged(ObservableList list,
int start,
int count)
Notify registered callbacks that some elements have changed.
|
void |
notifyInserted(ObservableList list,
int start,
int count)
Notify registered callbacks that elements were inserted.
|
void |
notifyMoved(ObservableList list,
int from,
int to,
int count)
Notify registered callbacks that elements were moved.
|
void |
notifyRemoved(ObservableList list,
int start,
int count)
Notify registered callbacks that elements were deleted.
|
add, clear, clone, copyCallbacks, copyCallbacks, isEmpty, remove
public void notifyChanged(ObservableList list)
list
- The list that changed.public void notifyChanged(ObservableList list, int start, int count)
list
- The list that changed.start
- The index of the first changed element.count
- The number of changed elements.public void notifyInserted(ObservableList list, int start, int count)
list
- The list that changed.start
- The index where the elements were inserted.count
- The number of elements that were inserted.public void notifyMoved(ObservableList list, int from, int to, int count)
list
- The list that changed.from
- The index of the first element moved.to
- The index of where the element was moved to.count
- The number of elements moved.public void notifyRemoved(ObservableList list, int start, int count)
list
- The list that changed.start
- The index of the first element to be removed.count
- The number of elements removed.public void notifyCallbacks(ObservableList sender, int notificationType, android.databinding.ListChangeRegistry.ListChanges listChanges)
CallbackRegistry
notifyCallbacks
in class CallbackRegistry<ObservableList.OnListChangedCallback,ObservableList,android.databinding.ListChangeRegistry.ListChanges>
sender
- The originator. This is an opaque parameter passed to
CallbackRegistry.NotifierCallback.onNotifyCallback(Object, Object, int, Object)
notificationType
- An opaque parameter passed to
CallbackRegistry.NotifierCallback.onNotifyCallback(Object, Object, int, Object)
listChanges
- An opaque parameter passed to
CallbackRegistry.NotifierCallback.onNotifyCallback(Object, Object, int, Object)