Interface WritableListValue<E>
- Type Parameters:
E- the type of theListelements
- All Superinterfaces:
Collection<E>, Iterable<E>, List<E>, Observable, ObservableList<E>, SequencedCollection<E>, WritableObjectValue<ObservableList<E>>, WritableValue<ObservableList<E>>
- All Known Implementing Classes:
ListProperty, ListPropertyBase, ReadOnlyListWrapper, SimpleListProperty
public interface WritableListValue<E>
extends WritableObjectValue<ObservableList<E>>, ObservableList<E>
A writable 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 WritableObjectValue
get, setModifier and TypeMethodDescriptionget()Get the wrapped value.voidset(ObservableList<E> value) Set the wrapped value.Methods declared in interface WritableValue
getValue, setValueModifier and TypeMethodDescriptiongetValue()Get the wrapped value.voidsetValue(ObservableList<E> value) Set the wrapped value.