Class ObservableLists

java.lang.Object
dev.webfx.kit.util.properties.ObservableLists

public final class ObservableLists extends Object
Author:
Bruno Salmon
  • Constructor Details

    • ObservableLists

      public ObservableLists()
  • Method Details

    • setAllNonNulls

      public static <T> void setAllNonNulls(ObservableList<T> list, T... elements)
    • setAllNonNulls

      public static <T> void setAllNonNulls(ObservableList<T> list, List<? extends T> elements)
    • setAllConverted

      public static <A, B> void setAllConverted(List<A> aList, dev.webfx.platform.util.function.Converter<A,B> aToBConverter, ObservableList<B> bList)
    • setAllNonNullsConverted

      public static <A, B> void setAllNonNullsConverted(List<A> aList, dev.webfx.platform.util.function.Converter<A,B> aToBConverter, ObservableList<B> bList)
    • bind

      public static <A, B extends A> void bind(ObservableList<A> list1, ObservableList<B> list2)
    • bindTransformed

      public static <A, B> void bindTransformed(ObservableList<A> aList, ObservableList<B> bList, Function<List<B>,List<A>> bToAListTransformer)
    • bindConverted

      public static <A, B> void bindConverted(ObservableList<A> aList, ObservableList<B> bList, dev.webfx.platform.util.function.Converter<B,A> bToAConverter)
    • map

      public static <A, B> ObservableList<A> map(ObservableList<B> bList, dev.webfx.platform.util.function.Converter<B,A> bToAConverter)
    • runNowAndOnListChange

      public static <T> void runNowAndOnListChange(ListChangeListener<T> listener, ObservableList<T> list)
    • runOnListChange

      public static <T> void runOnListChange(ListChangeListener<T> listener, ObservableList<T> list)
    • isEmpty

      public static <T> BooleanExpression isEmpty(ObservableList<T> list)