Top Inners Fields Constructors Methods
com.sun.javafx.collections

public abstract Class VetoableListDecorator<E>

extends Object
implements ObservableList<E>, SortableList<E>
Class Inheritance
All Implemented Interfaces
com.sun.javafx.collections.SortableList, javafx.collections.ObservableList, javafx.beans.Observable, java.util.List, java.util.SequencedCollection, java.util.Collection, java.lang.Iterable
Imports
com.sun.javafx.UnmodifiableArrayList, java.util.ArrayList, .Arrays, .Collection, .Collections, .Comparator, .ConcurrentModificationException, .Iterator, .List, .ListIterator, .Objects, javafx.beans.InvalidationListener, javafx.collections.ListChangeListener, .ObservableList

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static interface
private class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private ListListenerHelper<E>
private final ObservableList<E>
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
add(E e)

Implements java.util.List.add.

Appends the specified element to the end of this list (optional operation).

public void
add(int index, E element)

Implements java.util.List.add.

Inserts the specified element at the specified position in this list (optional operation).

public boolean
addAll(E... elements)

Implements javafx.collections.ObservableList.addAll.

A convenience method for var-arg addition of elements.

public boolean
addAll(Collection<? extends E> c)

Implements java.util.List.addAll.

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation).

public boolean
addAll(int index, Collection<? extends E> c)

Implements java.util.List.addAll.

Inserts all of the elements in the specified collection into this list at the specified position (optional operation).

public void
addListener(ListChangeListener<? super E> listener)

Implements javafx.collections.ObservableList.addListener.

Add a listener to this observable list.

public void
addListener(InvalidationListener listener)

Implements javafx.beans.Observable.addListener.

Adds an InvalidationListener which will be notified whenever the Observable becomes invalid.

public void
clear()

Implements java.util.List.clear.

Removes all of the elements from this list (optional operation).

public boolean
contains(Object o)

Implements java.util.List.contains.

Returns true if this list contains the specified element.

public boolean
containsAll(Collection<?> c)

Implements java.util.List.containsAll.

Returns true if this list contains all of the elements of the specified collection.

public final void
doSort(Comparator<? super E> comparator)

Implements com.sun.javafx.collections.SortableList.doSort.

Sorts the list and reports it as one change event.

public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

Implements java.util.List.equals.

Compares the specified object with this list for equality.

public E
get(int index)

Implements java.util.List.get.

Returns the element at the specified position in this list.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements java.util.List.hashCode.

Returns the hash code value for this list.

public int
indexOf(Object o)

Implements java.util.List.indexOf.

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.

public boolean
isEmpty()

Implements java.util.List.isEmpty.

Returns true if this list contains no elements.

public Iterator<E>
iterator()

Implements java.util.List.iterator.

Returns an iterator over the elements in this list in proper sequence.

public int
lastIndexOf(Object o)

Implements java.util.List.lastIndexOf.

Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.

public ListIterator<E>
listIterator()

Implements java.util.List.listIterator.

Returns a list iterator over the elements in this list (in proper sequence).

public ListIterator<E>
listIterator(int index)

Implements java.util.List.listIterator.

Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.

protected abstract void
onProposedChange(List<E>
the list to be added
toBeAdded
,
int... indexes)

The type of the change can be observed from the combination of arguments.

public void
remove(int from, int to)

Implements javafx.collections.ObservableList.remove.

A simplified way of calling sublist(from, to).clear().

public boolean
remove(Object o)

Implements java.util.List.remove.

Removes the first occurrence of the specified element from this list, if it is present (optional operation).

public E
remove(int index)

Implements java.util.List.remove.

Removes the element at the specified position in this list (optional operation).

public boolean
removeAll(E... elements)

Implements javafx.collections.ObservableList.removeAll.

A convenience method for var-arg usage of the removeAll method.

public boolean
removeAll(Collection<?> c)

Implements java.util.List.removeAll.

Removes from this list all of its elements that are contained in the specified collection (optional operation).

private void
removeFromList(List<E> backingList, int offset, Collection<?> col, boolean complement)

public void
removeListener(ListChangeListener<? super E> listener)

Implements javafx.collections.ObservableList.removeListener.

Tries to remove a listener from this observable list.

public void
removeListener(InvalidationListener listener)

Implements javafx.beans.Observable.removeListener.

Removes the given listener from the list of listeners, that are notified whenever the value of the Observable becomes invalid.

public boolean
retainAll(E... elements)

Implements javafx.collections.ObservableList.retainAll.

A convenience method for var-arg usage of the retainAll method.

public boolean
retainAll(Collection<?> c)

Implements java.util.List.retainAll.

Retains only the elements in this list that are contained in the specified collection (optional operation).

private <T> Collection<T>
safeCollection(Collection<T> c)

Returns a collection that can safely be used in the removeAll(Collection) and retainAll(Collection) operations without triggering ConcurrentModificationException.

public E
set(int index, E element)

Implements java.util.List.set.

Replaces the element at the specified position in this list with the specified element (optional operation).

public boolean
setAll(E... elements)

Implements javafx.collections.ObservableList.setAll.

Clears the ObservableList and adds all the elements passed as var-args.

public boolean
setAll(Collection<? extends E> col)

Implements javafx.collections.ObservableList.setAll.

Clears the ObservableList and adds all elements from the collection.

private boolean
setAllImpl(List<E> unmodifiableList)

public int
size()

Implements java.util.List.size.

Returns the number of elements in this list.

public List<E>
subList(int fromIndex, int toIndex)

Implements java.util.List.subList.

Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.

public Object[]
toArray()

Implements java.util.List.toArray.

Returns an array containing all of the elements in this list in proper sequence (from first to last element).

public <T> T[]
toArray(T[] a)

Implements java.util.List.toArray.

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.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private <T> List<T>
unmodifiableList(Collection<? extends T> c)

Returns the specified collection as an unmodifiable list that can safely be used in all bulk operations without triggering ConcurrentModificationException.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait