Top Description Fields Constructors Methods
com.dlsc.gemsfx.binding

public Class NestedListChangeTracker<T>

extends AbstractChangeTracker<ObservableList<T>>
Class Inheritance
Type Parameters
<T>
the type of the elements within the nested ObservableLists
Imports
javafx.collections.ListChangeListener, .ObservableList, .WeakListChangeListener, java.util.function.Consumer

This class extends AbstractChangeTracker to specifically handle ObservableList of ObservableList. It tracks changes to both the outer list and inner lists and notifies the consumer upon any modifications.

Field Summary

Modifier and TypeField and Description
private final ListChangeListener<T>
private final WeakListChangeListener<T>
Inherited from com.dlsc.gemsfx.binding.AbstractChangeTracker:
onChanged

Constructor Summary

AccessConstructor and Description
public
NestedListChangeTracker(ObservableList<ObservableList<T>>
the observable list of observable lists that is being monitored
source
)

Constructs a NestedListChangeTracker with the specified source list.

public
NestedListChangeTracker(ObservableList<ObservableList<T>>
the observable list of observable lists that is being monitored
source
,
Consumer<ObservableList<ObservableList<T>>>
the consumer to handle change notifications
onChanged
)

Constructs a NestedListChangeTracker with the specified source list and change handler.

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
Inherited from com.dlsc.gemsfx.binding.AbstractChangeTracker:
disposeinitOuterListenernotifyChangesetOnChanged

Field Detail

innerListListenerback to summary
private final ListChangeListener<T> innerListListener
weakInnerListListenerback to summary
private final WeakListChangeListener<T> weakInnerListListener

Constructor Detail

NestedListChangeTrackerback to summary
public NestedListChangeTracker(ObservableList<ObservableList<T>> source)

Constructs a NestedListChangeTracker with the specified source list.

Parameters
source:ObservableList<ObservableList<T>>

the observable list of observable lists that is being monitored

NestedListChangeTrackerback to summary
public NestedListChangeTracker(ObservableList<ObservableList<T>> source, Consumer<ObservableList<ObservableList<T>>> onChanged)

Constructs a NestedListChangeTracker with the specified source list and change handler.

Parameters
source:ObservableList<ObservableList<T>>

the observable list of observable lists that is being monitored

onChanged:Consumer<ObservableList<ObservableList<T>>>

the consumer to handle change notifications

Method Detail

safeAddListenerback to summary
protected void safeAddListener(ObservableList<T> value)

Implements abstract com.dlsc.gemsfx.binding.AbstractChangeTracker.safeAddListener.

safeRemoveListenerback to summary
protected void safeRemoveListener(ObservableList<T> value)

Implements abstract com.dlsc.gemsfx.binding.AbstractChangeTracker.safeRemoveListener.