The class uses weak listeners to prevent memory leaks and ensure that lists can be garbage collected
when no longer in use. Changes in any of the nested lists will trigger an invalidation in the binding,
prompting a re-computation of its value based on the specific implementation of computeValue() in the subclass.
| Modifier and Type | Field and Description |
|---|---|
| private final ListChangeListener | |
| private final ListChangeListener | |
| protected final ObservableList | |
| private final WeakListChangeListener | |
| private final WeakListChangeListener |
| Access | Constructor and Description |
|---|---|
| public | AbstractNestedListBinding(ObservableList<ObservableList<T>>
The observable list of observable lists that serves as the source for this binding. source)Constructs an AbstractNestedListBinding with the specified source of nested observable lists. |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Overrides javafx. Implements javafx. A default implementation of |
| protected Stream | |
| protected void | |
| private void | |
| private void |
| innerListChangeListener | back to summary |
|---|---|
| private final ListChangeListener<T> innerListChangeListener | |
| outerListChangeListener | back to summary |
|---|---|
| private final ListChangeListener<ObservableList<T>> outerListChangeListener | |
| source | back to summary |
|---|---|
| protected final ObservableList<ObservableList<T>> source | |
| weakInnerListChangeListener | back to summary |
|---|---|
| private final WeakListChangeListener<T> weakInnerListChangeListener | |
| weakOuterListChangeListener | back to summary |
|---|---|
| private final WeakListChangeListener<ObservableList<T>> weakOuterListChangeListener | |
| AbstractNestedListBinding | back to summary |
|---|---|
| public AbstractNestedListBinding(ObservableList<ObservableList<T>> source) Constructs an AbstractNestedListBinding with the specified source of nested observable lists.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. A default implementation of
| |
| flattenSource | back to summary |
|---|---|
| protected Stream | |
| initListeners | back to summary |
|---|---|
| protected void initListeners() Initializes listeners on the source list and any existing nested lists. This method should be called after subclass constructors have fully initialized any necessary fields to ensure that listeners interact with a fully initialized object. | |
| safeAddListener | back to summary |
|---|---|
| private void safeAddListener(ObservableList<T> list) | |
| safeRemoveListener | back to summary |
|---|---|
| private void safeRemoveListener(ObservableList<T> list) | |