| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private SetListenerHelper |
| Access | Constructor and Description |
|---|---|
| public | ObservableSetWrapper(Set<E>
the set being wrapped set)Creates new instance of ObservableSet that wraps the particular set specified by the parameter set. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the element was addedthe element to be added to the set o)Implements java. Adds the specific element into this set and call all the registered observers unless the set already contains the element. |
| public boolean | Returns: true if this set changed as a result of the callcollection containing elements to be added to this set c)Implements java. Adds the elements from the specified collection. |
| public void | addListener(InvalidationListener
The listener to register listener)Implements javafx. Adds an |
| public void | addListener(SetChangeListener<? super E>
the listener for listening to the set changes observer)Implements javafx. Add a listener to this observable set. |
| private void | |
| public void | |
| public boolean | Returns: true if this set contains specified elementan element that is being looked for o)Implements java. Returns true if this set contains specified element. |
| public boolean | Returns: true if the set contains all the elements in the specified collectioncollection to be checked for containment in this set c)Implements java. Test this set if it contains all the elements in the specified collection. |
| public boolean | Returns: true if the wrapped is equal to the obj argumentthe reference object with which to compare obj)Overrides java. Implements java. Indicates whether some other object is "equal to" the wrapped set. |
| public int | Returns: the hash code for the wrapped setOverrides java. Implements java. Returns the hash code for the wrapped set. |
| public boolean | Returns: true if this set contains no elementsImplements java. Returns true if this set contains no elements. |
| public Iterator | Returns: an iterator over the elements in this setImplements java. Returns an iterator over the elements in this set. |
| public boolean | Returns: true if the element was removedthe element to be removed from the set o)Implements java. Removes the specific element from this set and call all the registered observers if the set contained the element. |
| public boolean | Returns: true if this set changed as a result of the callcollection containing elements to be removed from this set c)Implements java. Removes all the elements that are contained in the specified collection. |
| public void | removeListener(InvalidationListener
The listener to remove listener)Implements javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the |
| public void | removeListener(SetChangeListener<? super E>
a listener to remove observer)Implements javafx. Tries to removed a listener from this observable set. |
| private boolean | |
| public boolean | Returns: true if this set changed as a result of the callcollection containing elements to be kept in this set c)Implements java. Keeps only elements that are included in the specified collection. |
| public int | Returns: number of elements contained in the setImplements java. Returns number of elements contained in this set. |
| public Object[] | Returns: an array containing all of the elements in this setImplements java. Returns an array containing all of the elements in this set. |
| public <T> T[] | Returns: an array containing all of the elements in this setthe array into which the elements of this set are to be stored, if it is big enough;
otherwise, a new array of the same runtime type is allocated a)Implements java. Returns an array containing all of the elements in this set. |
| public String | Returns: the String representation of the wrapped setOverrides java. Returns the String representation of the wrapped set. |
| backingSet | back to summary |
|---|---|
| private final Set<E> backingSet | |
| listenerHelper | back to summary |
|---|---|
| private SetListenerHelper<E> listenerHelper | |
| ObservableSetWrapper | back to summary |
|---|---|
| public ObservableSetWrapper(Set<E> set) Creates new instance of ObservableSet that wraps the particular set specified by the parameter set.
| |
| add | back to summary |
|---|---|
| public boolean add(E o) Implements java. Adds the specific element into this set and call all the registered observers unless the set already contains the element. Returns true in the case the element was added to the set.
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<? extends E> c) Implements java. Adds the elements from the specified collection. Observers are called for each elements that was not already present in the set.
| |
| addListener | back to summary |
|---|---|
| public void addListener(InvalidationListener listener) Implements javafx. Doc from javafx. Adds an
Note that the same actual
The
| |
| addListener | back to summary |
|---|---|
| public void addListener(SetChangeListener<? super E> observer) Implements javafx. Doc from javafx. Add a listener to this observable set.
| |
| callObservers | back to summary |
|---|---|
| private void callObservers(SetChangeListener. | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Removes all the elements from this set. Observers are called for each element.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Implements java. Returns true if this set contains specified element.
| |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(Collection<?> c) Implements java. Test this set if it contains all the elements in the specified collection. In such case returns true.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements java. Indicates whether some other object is "equal to" the wrapped set.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Returns the hash code for the wrapped set.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Returns true if this set contains no elements.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Returns an iterator over the elements in this set.
If the iterator's
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Implements java. Removes the specific element from this set and call all the registered observers if the set contained the element. Returns true in the case the element was removed from the set.
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(Collection<?> c) Implements java. Removes all the elements that are contained in the specified collection. Observers are called for each removed element.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(InvalidationListener listener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(SetChangeListener<? super E> observer) Implements javafx. Doc from javafx. Tries to removed a listener from this observable set. If the listener is not attached to this list, nothing happens.
| |
| removeRetain | back to summary |
|---|---|
| private boolean removeRetain(Collection<?> c, boolean remove) | |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(Collection<?> c) Implements java. Keeps only elements that are included in the specified collection. All other elements are removed. For each removed element all the observers are called.
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Returns number of elements contained in this set.
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Implements java. Returns an array containing all of the elements in this set.
| |
| toArray | back to summary |
|---|---|
| public <T> T[] toArray(T[] a) Implements java. Returns an array containing all of the elements in this set. The runtime type of the returned array is that of the specified array.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the String representation of the wrapped set.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final E |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public E | getElementAdded()
Implements abstract javafx. Get the new element. |
| public E | getElementRemoved()
Implements abstract javafx. Get the old element. |
| public String | |
| public boolean | wasAdded()
Implements abstract javafx. If this change is a result of add operation. |
| public boolean | wasRemoved()
Implements abstract javafx. If this change is a result of removal operation. |
| added | back to summary |
|---|---|
| private final E added | |
| SimpleAddChange | back to summary |
|---|---|
| public SimpleAddChange(E added) | |
| getElementAdded | back to summary |
|---|---|
| public E getElementAdded() Implements abstract javafx. Doc from javafx. Get the new element. Return null if this is a removal.
| |
| getElementRemoved | back to summary |
|---|---|
| public E getElementRemoved() Implements abstract javafx. Doc from javafx. Get the old element. Return null if this is an addition.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| wasAdded | back to summary |
|---|---|
| public boolean wasAdded() Implements abstract javafx. Doc from javafx. If this change is a result of add operation.
| |
| wasRemoved | back to summary |
|---|---|
| public boolean wasRemoved() Implements abstract javafx. Doc from javafx. If this change is a result of removal operation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final E |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public E | getElementAdded()
Implements abstract javafx. Get the new element. |
| public E | getElementRemoved()
Implements abstract javafx. Get the old element. |
| public String | |
| public boolean | wasAdded()
Implements abstract javafx. If this change is a result of add operation. |
| public boolean | wasRemoved()
Implements abstract javafx. If this change is a result of removal operation. |
| removed | back to summary |
|---|---|
| private final E removed | |
| SimpleRemoveChange | back to summary |
|---|---|
| public SimpleRemoveChange(E removed) | |
| getElementAdded | back to summary |
|---|---|
| public E getElementAdded() Implements abstract javafx. Doc from javafx. Get the new element. Return null if this is a removal.
| |
| getElementRemoved | back to summary |
|---|---|
| public E getElementRemoved() Implements abstract javafx. Doc from javafx. Get the old element. Return null if this is an addition.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| wasAdded | back to summary |
|---|---|
| public boolean wasAdded() Implements abstract javafx. Doc from javafx. If this change is a result of add operation.
| |
| wasRemoved | back to summary |
|---|---|
| public boolean wasRemoved() Implements abstract javafx. Doc from javafx. If this change is a result of removal operation.
| |