ObservableArray implementations.
The base class provides listener handling functionality by implementing
addListener and removeListener methods.
fireChange(boolean, int, int) method is provided
for notifying the listeners.
ObservableArray, ArrayChangeListener
| Modifier and Type | Field and Description |
|---|---|
| private ArrayListenerHelper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addListener(InvalidationListener listener)
Implements javafx. Adds an |
| public final void | addListener(ArrayChangeListener<T> listener)
Implements javafx. Add a listener to this observable array. |
| protected final void | fireChange(boolean
indicates size of array changed sizeChanged, int A beginning (inclusive) of an interval related to the change from, int An end (exclusive) of an interval related to the change. to)Notifies all listeners of a change |
| public final void | removeListener(InvalidationListener listener)
Implements javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the |
| public final void | removeListener(ArrayChangeListener<T> listener)
Implements javafx. Tries to remove a listener from this observable array. |
| listenerHelper | back to summary |
|---|---|
| private ArrayListenerHelper<T> listenerHelper | |
| ObservableArrayBase | back to summary |
|---|---|
| public ObservableArrayBase() Creates a default | |
| addListener | back to summary |
|---|---|
| public final void addListener(InvalidationListener listener) Implements javafx. Doc from javafx. Adds an
Note that the same actual
The
| |
| addListener | back to summary |
|---|---|
| public final void addListener(ArrayChangeListener<T> listener) Implements javafx. Doc from javafx. Add a listener to this observable array.
| |
| fireChange | back to summary |
|---|---|
| protected final void fireChange(boolean sizeChanged, int from, int to) Notifies all listeners of a change
| |
| removeListener | back to summary |
|---|---|
| public final 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 final void removeListener(ArrayChangeListener<T> listener) Implements javafx. Doc from javafx. Tries to remove a listener from this observable array. If the listener is not attached to this array, nothing happens.
| |