Module javafx.base
Package javafx.collections
Class ObservableArrayBase<T extends ObservableArray<T>>
- java.lang.Object
-
- javafx.collections.ObservableArrayBase<T>
-
- Type Parameters:
T
- actual array instance type
- All Implemented Interfaces:
Observable
,ObservableArray<T>
public abstract class ObservableArrayBase<T extends ObservableArray<T>> extends Object implements ObservableArray<T>
Abstract class that serves as a base class forObservableArray
implementations. The base class provides listener handling functionality by implementingaddListener
andremoveListener
methods.fireChange(boolean, int, int)
method is provided for notifying the listeners.- Since:
- JavaFX 8.0
- See Also:
ObservableArray
,ArrayChangeListener
-
-
Constructor Summary
Constructors Constructor Description ObservableArrayBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fireChange(boolean sizeChanged, int from, int to)
Notifies all listeners of a change-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface javafx.beans.Observable
addListener, removeListener
-
Methods declared in interface javafx.collections.ObservableArray
addListener, clear, ensureCapacity, removeListener, resize, size, trimToSize
-
-
-
-
Method Detail
-
fireChange
protected final void fireChange(boolean sizeChanged, int from, int to)
Notifies all listeners of a change- Parameters:
sizeChanged
- indicates size of array changedfrom
- A beginning (inclusive) of an interval related to the changeto
- An end (exclusive) of an interval related to the change.
-
-