Example usage for Java javafx.collections ObservableList fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | add(E e) Appends the specified element to the end of this list (optional operation). |
void | add(int index, E element) Inserts the specified element at the specified position in this list (optional operation). |
boolean | addAll(int index, Collection extends E> c) Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
boolean | addAll(E... elements) A convenience method for var-arg addition of elements. |
void | addListener(ListChangeListener super E> listener) Add a listener to this observable list. |
void | clear() Removes all of the elements from this list (optional operation). |
boolean | contains(Object o) Returns true if this list contains the specified element. |
FilteredList | filtered(Predicate Creates a FilteredList wrapper of this list using the specified predicate. |
void | forEach(Consumer super T> action) Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception. |
E | get(int index) Returns the element at the specified position in this list. |
int | indexOf(Object o) Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
boolean | isEmpty() Returns true if this list contains no elements. |
Iterator | iterator() Returns an iterator over the elements in this list in proper sequence. |
ListIterator | listIterator() Returns a list iterator over the elements in this list (in proper sequence). |
void | remove(int from, int to) A simplified way of calling sublist(from, to).clear() . |
boolean | remove(Object o) Removes the first occurrence of the specified element from this list, if it is present (optional operation). |
boolean | removeAll(E... elements) A convenience method for var-arg usage of the #removeAll(Collection) removeAll method. |
boolean | retainAll(E... elements) A convenience method for var-arg usage of the #retainAll(Collection) retainAll method. |
E | set(int index, E element) Replaces the element at the specified position in this list with the specified element (optional operation). |
boolean | setAll(E... elements) Clears the ObservableList and adds all the elements passed as var-args. |
boolean | setAll(Collection extends E> col) Clears the ObservableList and adds all elements from the collection. |
int | size() Returns the number of elements in this list. |
void | sort(Comparator super E> c) Sorts this list according to the order induced by the specified Comparator . |
SortedList | sorted(Comparator Creates a SortedList wrapper of this list using the specified comparator. |
Stream | stream() Returns a sequential Stream with this collection as its source. |
T[] | toArray(T[] a) Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |