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>
Unregisterablebind
(ObservableList<A> list1, ObservableList<B> list2) static <A,
B> Unregisterable bindConverted
(ObservableList<A> aList, ObservableList<B> bList, dev.webfx.platform.util.function.Converter<B, A> bToAConverter) static <A,
B> Unregisterable 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> ObservableList<T>
newObservableList
(Runnable onInvalidated) static <T> ObservableList<T>
newObservableList
(Consumer<ObservableList<T>> onInvalidated) static <T> Unregisterable
runNowAndOnListChange
(ListChangeListener<T> listener, ObservableList<T> list) static <T> void
runNowAndOnListOrPropertiesChange
(ListChangeListener<T> listener, ObservableList<T> list, ObservableValue... properties) static <T> void
runOnListChange
(Runnable listener, ObservableList<T> list) static <T> Unregisterable
runOnListChange
(ListChangeListener<T> listener, ObservableList<T> list) static <T> void
runOnListOrPropertiesChange
(ListChangeListener<T> listener, ObservableList<T> list, ObservableValue... properties) 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
public static <A,B extends A> Unregisterable bind(ObservableList<A> list1, ObservableList<B> list2) -
bindTransformed
public static <A,B> Unregisterable bindTransformed(ObservableList<A> aList, ObservableList<B> bList, Function<List<B>, List<A>> bToAListTransformer) -
bindConverted
public static <A,B> Unregisterable 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) -
runOnListChange
public static <T> Unregisterable runOnListChange(ListChangeListener<T> listener, ObservableList<T> list) -
runOnListChange
-
runNowAndOnListChange
public static <T> Unregisterable runNowAndOnListChange(ListChangeListener<T> listener, ObservableList<T> list) -
runNowAndOnListOrPropertiesChange
public static <T> void runNowAndOnListOrPropertiesChange(ListChangeListener<T> listener, ObservableList<T> list, ObservableValue... properties) -
runOnListOrPropertiesChange
public static <T> void runOnListOrPropertiesChange(ListChangeListener<T> listener, ObservableList<T> list, ObservableValue... properties) -
isEmpty
-
newObservableList
-
newObservableList
-