Spec-Zone .ru
спецификации, руководства, описания, API
|
E
- the list element typepublic interface ObservableList<E> extends java.util.List<E>, Observable
ListChangeListener
,
ListChangeListener.Change
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(E... elements)
A convenient method for var-arg adding of elements.
|
void |
addListener(ListChangeListener<? super E> listener)
Add a listener to this observable list.
|
void |
remove(int from,
int to)
Basically a shortcut to sublist(from, to).clear()
As this is a common operation, ObservableList has this method for convenient usage.
|
boolean |
removeAll(E... elements)
A convenient method for var-arg usage of removaAll method.
|
void |
removeListener(ListChangeListener<? super E> listener)
Tries to removed a listener from this observable list.
|
boolean |
retainAll(E... elements)
A convenient method for var-arg usage of retain method.
|
boolean |
setAll(java.util.Collection<? extends E> col)
Clears the ObservableList and add all elements from the collection.
|
boolean |
setAll(E... elements)
Clears the ObservableList and add all the elements passed as var-args.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
addListener, removeListener
void addListener(ListChangeListener<? super E> listener)
listener
- the listener for listening to the list changesvoid removeListener(ListChangeListener<? super E> listener)
listener
- a listener to removeboolean addAll(E... elements)
elements
- the elements to addboolean setAll(E... elements)
elements
- the elements to setjava.lang.NullPointerException
- if the specified arguments contain one or more null elementsboolean setAll(java.util.Collection<? extends E> col)
col
- the collection with elements that will be added to this observableArrayListjava.lang.NullPointerException
- if the specified collection contains one or more null elementsboolean removeAll(E... elements)
elements
- the elements to be removedboolean retainAll(E... elements)
elements
- the elements to be retainedvoid remove(int from, int to)
from
- the start of the range to remove (inclusive)to
- the end of the range to remove (exclusive)java.lang.IndexOutOfBoundsException
- if an illegal range is providedCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to