Interface ObservableListListener

  • All Superinterfaces:
    java.util.EventListener
    All Known Implementing Classes:
    ListBindingManager

    public interface ObservableListListener
    extends java.util.EventListener
    Notification types from an ObservableList.
    • Method Detail

      • listElementsAdded

        void listElementsAdded​(ObservableList list,
                               int index,
                               int length)
        Notification that elements have been added to the list.
        Parameters:
        list - the ObservableList that has changed
        index - the index the elements were added to
        length - the number of elements that were added
      • listElementsRemoved

        void listElementsRemoved​(ObservableList list,
                                 int index,
                                 java.util.List oldElements)
        Notification that elements have been removed from the list.
        Parameters:
        list - the ObservableList that has changed
        index - the starting index the elements were removed from
        oldElements - a list containing the elements that were removed.
      • listElementReplaced

        void listElementReplaced​(ObservableList list,
                                 int index,
                                 java.lang.Object oldElement)
        Notification that an element has been replaced by another in the list.
        Parameters:
        list - the ObservableList that has changed
        index - the index of the element that was replaced
        oldElement - the element at the index before the change
      • listElementPropertyChanged

        void listElementPropertyChanged​(ObservableList list,
                                        int index)
        Notification than a property of an element in this list has changed. Not all ObservableLists support this notification. Only observable lists that return true from supportsElementPropertyChanged send this notification.
        Parameters:
        list - the ObservableList that has changed
        index - the index of the element that changed