Module org.jhotdraw8.fxcollection
Class ObservableListFacade<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.jhotdraw8.icollection.facade.ListFacade<E>
org.jhotdraw8.fxcollection.facade.ObservableListFacade<E>
- Type Parameters:
E- the element type
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,SequencedCollection<E>,javafx.beans.Observable,javafx.collections.ObservableList<E>
public class ObservableListFacade<E>
extends ListFacade<E>
implements javafx.collections.ObservableList<E>
Wraps a
ReadOnlyList in the ObservableList interface.
The underlying ReadOnlyList is referenced - not copied. This allows to pass a ReadOnlyList to a client who does not understand the ReadOnlyList APi.
- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanvoidaddListener(javafx.beans.InvalidationListener listener) voidaddListener(javafx.collections.ListChangeListener<? super E> listener) voidremove(int from, int to) final booleanvoidremoveListener(javafx.beans.InvalidationListener listener) voidremoveListener(javafx.collections.ListChangeListener<? super E> listener) final booleanfinal booleanbooleansetAll(Collection<? extends E> col) Methods inherited from class org.jhotdraw8.icollection.facade.ListFacade
addFirst, addLast, get, remove, reversed, size, spliterator, streamMethods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArrayMethods inherited from interface javafx.beans.Observable
subscribeMethods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Constructor Details
-
ObservableListFacade
-
-
Method Details
-
addListener
- Specified by:
addListenerin interfacejavafx.collections.ObservableList<E>
-
removeListener
- Specified by:
removeListenerin interfacejavafx.collections.ObservableList<E>
-
addAll
- Specified by:
addAllin interfacejavafx.collections.ObservableList<E>
-
setAll
- Specified by:
setAllin interfacejavafx.collections.ObservableList<E>
-
setAll
- Specified by:
setAllin interfacejavafx.collections.ObservableList<E>
-
removeAll
- Specified by:
removeAllin interfacejavafx.collections.ObservableList<E>
-
retainAll
- Specified by:
retainAllin interfacejavafx.collections.ObservableList<E>
-
remove
public void remove(int from, int to) - Specified by:
removein interfacejavafx.collections.ObservableList<E>
-
addListener
public void addListener(javafx.beans.InvalidationListener listener) - Specified by:
addListenerin interfacejavafx.beans.Observable
-
removeListener
public void removeListener(javafx.beans.InvalidationListener listener) - Specified by:
removeListenerin interfacejavafx.beans.Observable
-