public class ListChangeRegistry
extends CallbackRegistry<OnListChangedCallback, ObservableList, ListChangeRegistry.ListChanges>
java.lang.Object | ||
↳ | android.databinding.CallbackRegistry<android.databinding.ObservableList.OnListChangedCallback, android.databinding.ObservableList, android.databinding.ListChangeRegistry.ListChanges> | |
↳ | android.databinding.ListChangeRegistry |
Utility class for managing ObservableList callbacks.
Public constructors |
|
---|---|
ListChangeRegistry() |
Public methods |
|
---|---|
void |
notifyCallbacks(ObservableList sender, int notificationType, ListChangeRegistry.ListChanges listChanges) Notify all callbacks. |
void |
notifyChanged(ObservableList list, int start, int count) Notify registered callbacks that some elements have changed. |
void |
notifyChanged(ObservableList list) Notify registered callbacks that there was an unknown or whole-list change. |
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. |
Inherited methods |
|
---|---|
![]() android.databinding.CallbackRegistry
|
|
![]() java.lang.Object
|
ListChangeRegistry ()
void notifyCallbacks (ObservableList sender, int notificationType, ListChangeRegistry.ListChanges listChanges)
Notify all callbacks.
Parameters | |
---|---|
sender |
ObservableList : The originator. This is an opaque parameter passed to onNotifyCallback(Object, Object, int, Object) |
notificationType |
int : An opaque parameter passed to onNotifyCallback(Object, Object, int, Object) |
listChanges |
ListChangeRegistry.ListChanges : An opaque parameter passed to onNotifyCallback(Object, Object, int, Object) |
void notifyChanged (ObservableList list, int start, int count)
Notify registered callbacks that some elements have changed.
Parameters | |
---|---|
list |
ObservableList : The list that changed. |
start |
int : The index of the first changed element. |
count |
int : The number of changed elements. |
void notifyChanged (ObservableList list)
Notify registered callbacks that there was an unknown or whole-list change.
Parameters | |
---|---|
list |
ObservableList : The list that changed. |
void notifyInserted (ObservableList list, int start, int count)
Notify registered callbacks that elements were inserted.
Parameters | |
---|---|
list |
ObservableList : The list that changed. |
start |
int : The index where the elements were inserted. |
count |
int : The number of elements that were inserted. |
void notifyMoved (ObservableList list, int from, int to, int count)
Notify registered callbacks that elements were moved.
Parameters | |
---|---|
list |
ObservableList : The list that changed. |
from |
int : The index of the first element moved. |
to |
int : The index of where the element was moved to. |
count |
int : The number of elements moved. |
void notifyRemoved (ObservableList list, int start, int count)
Notify registered callbacks that elements were deleted.
Parameters | |
---|---|
list |
ObservableList : The list that changed. |
start |
int : The index of the first element to be removed. |
count |
int : The number of elements removed. |