Module ilusr.core

Class MultiValueObservableListBinder<TSource,​TTarget>

  • Type Parameters:
    TSource - The original type.
    TTarget - The converted type.
    All Implemented Interfaces:
    javafx.collections.ListChangeListener<TSource>

    public class MultiValueObservableListBinder<TSource,​TTarget>
    extends Object
    implements javafx.collections.ListChangeListener<TSource>
    Author:
    Jeff Riggle
    • Constructor Detail

      • MultiValueObservableListBinder

        public MultiValueObservableListBinder​(javafx.collections.ObservableList<TSource> source,
                                              javafx.collections.ObservableList<TTarget> target,
                                              ListItemConverter<TSource,​TTarget> converter)
        Parameters:
        source - The source @see ObservableList
        target - The target @see ObservableList
    • Method Detail

      • unbind

        public void unbind()
        Unbinds the lists so that the target list will no longer receive updates from the source list.
      • onChanged

        public void onChanged​(javafx.collections.ListChangeListener.Change<? extends TSource> c)
        Specified by:
        onChanged in interface javafx.collections.ListChangeListener<TSource>