Interface ObservableListListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ListBindingManager
Notification types from an
ObservableList.-
Method Summary
Modifier and TypeMethodDescriptionvoidlistElementPropertyChanged(ObservableList list, int index) Notification than a property of an element in this list has changed.voidlistElementReplaced(ObservableList list, int index, Object oldElement) Notification that an element has been replaced by another in the list.voidlistElementsAdded(ObservableList list, int index, int length) Notification that elements have been added to the list.voidlistElementsRemoved(ObservableList list, int index, List oldElements) Notification that elements have been removed from the list.
-
Method Details
-
listElementsAdded
Notification that elements have been added to the list.- Parameters:
list- theObservableListthat has changedindex- the index the elements were added tolength- the number of elements that were added
-
listElementsRemoved
Notification that elements have been removed from the list.- Parameters:
list- theObservableListthat has changedindex- the starting index the elements were removed fromoldElements- a list containing the elements that were removed.
-
listElementReplaced
Notification that an element has been replaced by another in the list.- Parameters:
list- theObservableListthat has changedindex- the index of the element that was replacedoldElement- the element at the index before the change
-
listElementPropertyChanged
Notification than a property of an element in this list has changed. Not allObservableListssupport this notification. Only observable lists that returntruefromsupportsElementPropertyChangedsend this notification.- Parameters:
list- theObservableListthat has changedindex- the index of the element that changed
-