Package dev.webfx.kit.util.properties
Class ObservableLists
java.lang.Object
dev.webfx.kit.util.properties.ObservableLists
- Author:
- Bruno Salmon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A,
B extends A>
voidbind
(ObservableList<A> list1, ObservableList<B> list2) static <A,
B> void bindConverted
(ObservableList<A> aList, ObservableList<B> bList, dev.webfx.platform.util.function.Converter<B, A> bToAConverter) static <A,
B> void bindTransformed
(ObservableList<A> aList, ObservableList<B> bList, Function<List<B>, List<A>> bToAListTransformer) static <T> BooleanExpression
isEmpty
(ObservableList<T> list) static <A,
B> ObservableList<A> map
(ObservableList<B> bList, dev.webfx.platform.util.function.Converter<B, A> bToAConverter) static <T> void
runNowAndOnListChange
(ListChangeListener<T> listener, ObservableList<T> list) static <T> void
runOnListChange
(ListChangeListener<T> listener, ObservableList<T> list) static <A,
B> void setAllConverted
(List<A> aList, dev.webfx.platform.util.function.Converter<A, B> aToBConverter, ObservableList<B> bList) static <T> void
setAllNonNulls
(ObservableList<T> list, List<? extends T> elements) static <T> void
setAllNonNulls
(ObservableList<T> list, T... elements) static <A,
B> void setAllNonNullsConverted
(List<A> aList, dev.webfx.platform.util.function.Converter<A, B> aToBConverter, ObservableList<B> bList)
-
Constructor Details
-
ObservableLists
public ObservableLists()
-
-
Method Details
-
setAllNonNulls
-
setAllNonNulls
-
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
-
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
-
isEmpty
-