Interface ObservableListValue<E>
- Type Parameters:
E- the type of theListelements
- All Superinterfaces:
Collection<E>, Iterable<E>, List<E>, Observable, ObservableList<E>, ObservableObjectValue<ObservableList<E>>, ObservableValue<ObservableList<E>>, SequencedCollection<E>
- All Known Implementing Classes:
ListBinding, ListExpression, ListProperty, ListPropertyBase, ReadOnlyListProperty, ReadOnlyListPropertyBase, ReadOnlyListWrapper, SimpleListProperty
public interface ObservableListValue<E>
extends ObservableObjectValue<ObservableList<E>>, ObservableList<E>
An observable reference to an
ObservableList.- Since:
- JavaFX 2.1
- See Also:
-
Method Summary
Methods declared in interface Collection
parallelStream, removeIf, stream, toArrayMethods declared in interface 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 declared in interface Observable
addListener, removeListener, subscribeModifier and TypeMethodDescriptionvoidaddListener(InvalidationListener listener) Adds anInvalidationListenerwhich will be notified whenever theObservablebecomes invalid.voidremoveListener(InvalidationListener listener) Removes the given listener from the list of listeners, that are notified whenever the value of theObservablebecomes invalid.default SubscriptionCreates aSubscriptionon thisObservablewhich callsinvalidationSubscriberwhenever it becomes invalid.Methods declared in interface ObservableList
addAll, addListener, filtered, remove, removeAll, removeListener, replaceRange, retainAll, setAll, setAll, sorted, sortedModifier and TypeMethodDescriptionbooleanA convenience method for var-arg addition of elements.voidaddListener(ListChangeListener<? super E> listener) Add a listener to this observable list.default FilteredList<E> Creates aFilteredListwrapper of this list using the specified predicate.voidremove(int from, int to) A simplified way of callingsublist(from, to).clear().booleanA convenience method for var-arg usage of theremoveAllmethod.voidremoveListener(ListChangeListener<? super E> listener) Tries to remove a listener from this observable list.default booleanreplaceRange(int from, int to, Collection<? extends E> col) Replaces the elements in the range[from, to)with the elements from the given collection.booleanA convenience method for var-arg usage of theretainAllmethod.booleanClears the ObservableList and adds all the elements passed as var-args.booleansetAll(Collection<? extends E> col) Clears the ObservableList and adds all elements from the collection.default SortedList<E> sorted()Creates aSortedListwrapper of this list with the natural ordering.default SortedList<E> sorted(Comparator<E> comparator) Creates aSortedListwrapper of this list using the specified comparator.Methods declared in interface ObservableObjectValue
getModifier and TypeMethodDescriptionget()Returns the current value of thisObservableObjectValue<T>.Methods declared in interface ObservableValue
addListener, flatMap, getValue, map, orElse, removeListener, subscribe, subscribe, whenModifier and TypeMethodDescriptionvoidaddListener(ChangeListener<? super ObservableList<E>> listener) Adds aChangeListenerwhich will be notified whenever the value of theObservableValuechanges.default <U> ObservableValue<U> flatMap(Function<? super ObservableList<E>, ? extends ObservableValue<? extends U>> mapper) Returns anObservableValuethat holds the value of anObservableValueproduced by applying the given mapping function on this value.getValue()Returns the current value of thisObservableValuedefault <U> ObservableValue<U> map(Function<? super ObservableList<E>, ? extends U> mapper) Returns anObservableValuethat holds the result of applying the given mapping function on this value.default ObservableValue<ObservableList<E>> orElse(ObservableList<E> constant) Returns anObservableValuethat holds this value, or the given constant if it isnull.voidremoveListener(ChangeListener<? super ObservableList<E>> listener) Removes the given listener from the list of listeners that are notified whenever the value of theObservableValuechanges.default Subscriptionsubscribe(BiConsumer<? super ObservableList<E>, ? super ObservableList<E>> changeSubscriber) Creates aSubscriptionon thisObservableValuewhich calls the givenchangeSubscriberwith the old and new value whenever its value changes.default Subscriptionsubscribe(Consumer<? super ObservableList<E>> valueSubscriber) Creates aSubscriptionon thisObservableValuewhich immediately provides the current value to the givenvalueSubscriber, followed by any subsequent values whenever its value changes.default ObservableValue<ObservableList<E>> when(ObservableValue<Boolean> condition) Returns anObservableValuethat holds this value and is updated only whenconditionholdstrue.