Class NestedListChangeTracker<T>

java.lang.Object
com.dlsc.gemsfx.binding.AbstractChangeTracker<javafx.collections.ObservableList<T>>
com.dlsc.gemsfx.binding.NestedListChangeTracker<T>
Type Parameters:
T - the type of the elements within the nested ObservableLists

public class NestedListChangeTracker<T> extends AbstractChangeTracker<javafx.collections.ObservableList<T>>
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.
  • Constructor Details

    • NestedListChangeTracker

      public NestedListChangeTracker(javafx.collections.ObservableList<javafx.collections.ObservableList<T>> source)
      Constructs a NestedListChangeTracker with the specified source list.
      Parameters:
      source - the observable list of observable lists that is being monitored
    • NestedListChangeTracker

      public NestedListChangeTracker(javafx.collections.ObservableList<javafx.collections.ObservableList<T>> source, Consumer<javafx.collections.ObservableList<javafx.collections.ObservableList<T>>> onChanged)
      Constructs a NestedListChangeTracker with the specified source list and change handler.
      Parameters:
      source - the observable list of observable lists that is being monitored
      onChanged - the consumer to handle change notifications
  • Method Details

    • safeAddListener

      protected void safeAddListener(javafx.collections.ObservableList<T> value)
      Specified by:
      safeAddListener in class AbstractChangeTracker<javafx.collections.ObservableList<T>>
    • safeRemoveListener

      protected void safeRemoveListener(javafx.collections.ObservableList<T> value)
      Specified by:
      safeRemoveListener in class AbstractChangeTracker<javafx.collections.ObservableList<T>>