Package cz.masci.springfx.mvci.util
Class ListenerUtils
java.lang.Object
cz.masci.springfx.mvci.util.ListenerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> javafx.collections.ListChangeListener<T>createListChangeListener(Consumer<T> onAddItem, Consumer<T> onRemoveItem, Consumer<T> onUpdatedItem, Consumer<T> onPermutatedItem) Creates list change listener with consumers on add, remove, updated and permutated item.
-
Constructor Details
-
ListenerUtils
public ListenerUtils()
-
-
Method Details
-
createListChangeListener
public static <T> javafx.collections.ListChangeListener<T> createListChangeListener(Consumer<T> onAddItem, Consumer<T> onRemoveItem, Consumer<T> onUpdatedItem, Consumer<T> onPermutatedItem) Creates list change listener with consumers on add, remove, updated and permutated item. For null consumers no action is executed.
- Type Parameters:
T- Type of listener- Parameters:
onAddItem- What should be done with added itemonRemoveItem- What should be done with removed itemonUpdatedItem- What should be done with updated itemonPermutatedItem- What should be done with permutated item- Returns:
- Created list change listener
-