| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <A, B> void | bindBidirectional(Property<A> propertyA, Property<B> propertyB, Function<A, B> mapAtoB, Function<B, A> mapBtoA)
Binds propertyA bidirectional to propertyB using the provided map functions to convert between them. |
| public static <A> void | bindBidirectional(Property<A> propertyA, ObservableValue<A> propertyB, Consumer<A> updateB)
Binds propertyA bidirectional to propertyB while using updateB to update propertyB when propertyA changed. |
| public static <A, B> void | bindBidirectional(ObservableValue<A> propertyA, ObservableValue<B> propertyB, Consumer<B> updateA, Consumer<A> updateB)
Binds propertyA bidirectional to propertyB using updateB to update propertyB when propertyA changed and similar for updateA. |
| public static <A, B> void | bindContentBidirectional(ObservableList<A> propertyA, ListProperty<B> propertyB, Consumer<ObservableList<B>> updateA, Consumer<List<A>> updateB)
|
| public static <A, B> void | bindContentBidirectional(ObservableList<A> propertyA, ObservableValue<B> propertyB, Consumer<B> updateA, Consumer<List<A>> updateB)
|
| public static <A, B> void | bindContentBidirectional(ListProperty<A> listProperty, Property<B> property, Function<List<A>, B> mapToB, Function<B, List<A>> mapToList)
|
| public static <A, V, B> void | bindContentBidirectional(ObservableMap<A, V> propertyA, ObservableValue<B> propertyB, Consumer<B> updateA, Consumer<Map<A, V>> updateB)
|
| public static <A, V, B> void | bindContentBidirectional(ObservableMap<A, V> propertyA, Property<B> propertyB, Consumer<B> updateA, Function<Map<A, V>, B> mapToB)
|
| public static void | bindContentFiltered(ObservableList<Tab> source, ObservableList<BibDatabaseContext> target, Predicate<Tab> filter)
|
| public static <E extends Enum | |
| public static <T> ObservableValue | |
| public static ObservableValue | |
| public static ObservableValue | |
| public static <T> ObservableList | forUI(ObservableList<T> list)
Returns a wrapper around the given list that posts changes on the JavaFX thread. |
| public static void | handle(ObjectProperty<EventHandler<ActionEvent>> handler)
A horthand for calling the properties of action event handlers. |
| public static <T> ObservableValue | |
| public static com. | includePseudoClassWhen(Node node, PseudoClass pseudoClass, ObservableValue<? extends Boolean> condition)
|
| public static com. | listen(Observable observable, Runnable... runnables)
A variant of |
| public static <T> com. | listen(ObservableValue<T> observable, Consumer<T>... consumers)
A variant of |
| public static <T> com. | listen(Runnable runnable, Observable... observables)
A variant of |
| public static <T> void | listenToListChange(ListProperty<T> listProperty, Runnable... actions)
A shorthand to make a |
| public static <T> void | listenToListContentChanges(ListProperty<T> listProperty, Consumer<T> onAdded, Consumer<T> onRemoved)
A shorthand to perform actions on list modification: one function that processes added elements, and one for removed. |
| public static <T, U> ObservableList | |
| public static <T> com. | Returns: a subscription that can be used to stop invoking subscriber for any furtherobservable changes.observable value to subscribe to observable, Consumer<? super T> action to invoke for values of subscriber)observable.Invokes |
| BindingsHelper | back to summary |
|---|---|
| private BindingsHelper() | |
| bindBidirectional | back to summary |
|---|---|
| public static <A, B> void bindBidirectional(Property<A> propertyA, Property<B> propertyB, Function<A, B> mapAtoB, Function<B, A> mapBtoA) Binds propertyA bidirectional to propertyB using the provided map functions to convert between them. | |
| bindBidirectional | back to summary |
|---|---|
| public static <A> void bindBidirectional(Property<A> propertyA, ObservableValue<A> propertyB, Consumer<A> updateB) Binds propertyA bidirectional to propertyB while using updateB to update propertyB when propertyA changed. | |
| bindBidirectional | back to summary |
|---|---|
| public static <A, B> void bindBidirectional(ObservableValue<A> propertyA, ObservableValue<B> propertyB, Consumer<B> updateA, Consumer<A> updateB) Binds propertyA bidirectional to propertyB using updateB to update propertyB when propertyA changed and similar for updateA. | |
| bindContentBidirectional | back to summary |
|---|---|
| public static <A, B> void bindContentBidirectional(ObservableList<A> propertyA, ListProperty<B> propertyB, Consumer<ObservableList<B>> updateA, Consumer<List<A>> updateB) | |
| bindContentBidirectional | back to summary |
|---|---|
| public static <A, B> void bindContentBidirectional(ObservableList<A> propertyA, ObservableValue<B> propertyB, Consumer<B> updateA, Consumer<List<A>> updateB) | |
| bindContentBidirectional | back to summary |
|---|---|
| public static <A, B> void bindContentBidirectional(ListProperty<A> listProperty, Property<B> property, Function<List<A>, B> mapToB, Function<B, List<A>> mapToList) | |
| bindContentBidirectional | back to summary |
|---|---|
| public static <A, V, B> void bindContentBidirectional(ObservableMap<A, V> propertyA, ObservableValue<B> propertyB, Consumer<B> updateA, Consumer<Map<A, V>> updateB) | |
| bindContentBidirectional | back to summary |
|---|---|
| public static <A, V, B> void bindContentBidirectional(ObservableMap<A, V> propertyA, Property<B> propertyB, Consumer<B> updateA, Function<Map<A, V>, B> mapToB) | |
| bindContentFiltered | back to summary |
|---|---|
| public static void bindContentFiltered(ObservableList<Tab> source, ObservableList<BibDatabaseContext> target, Predicate<Tab> filter) | |
| bindEnum | back to summary |
|---|---|
| public static <E extends Enum Bind the enum property value to multiple conditions. Useful for making state machines.
| |
| constantOf | back to summary |
|---|---|
| public static <T> ObservableValue | |
| constantOf | back to summary |
|---|---|
| public static ObservableValue | |
| emptyString | back to summary |
|---|---|
| public static ObservableValue | |
| forUI | back to summary |
|---|---|
| public static <T> ObservableList Returns a wrapper around the given list that posts changes on the JavaFX thread. | |
| handle | back to summary |
|---|---|
| public static void handle(ObjectProperty<EventHandler<ActionEvent>> handler) A horthand for calling the properties of action event handlers. | |
| ifThenElse | back to summary |
|---|---|
| public static <T> ObservableValue | |
| includePseudoClassWhen | back to summary |
|---|---|
| public static com. | |
| listen | back to summary |
|---|---|
| public static com. A variant of | |
| listen | back to summary |
|---|---|
| public static <T> com. A variant of
| |
| listen | back to summary |
|---|---|
| public static <T> com. A variant of | |
| listenToListChange | back to summary |
|---|---|
| public static <T> void listenToListChange(ListProperty<T> listProperty, Runnable... actions) A shorthand to make a | |
| listenToListContentChanges | back to summary |
|---|---|
| public static <T> void listenToListContentChanges(ListProperty<T> listProperty, Consumer<T> onAdded, Consumer<T> onRemoved) A shorthand to perform actions on list modification: one function that processes added elements, and one for removed. | |
| map | back to summary |
|---|---|
| public static <T, U> ObservableList | |
| subscribeFuture | back to summary |
|---|---|
| public static <T> com. Invokes API Note
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableValue | |
| private final Consumer | |
| private final Consumer | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | BidirectionalBinding(ObservableValue<A> propertyA, ObservableValue<B> propertyB, Consumer<B> updateA, Consumer<A> updateB)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public ChangeListener | |
| public ChangeListener | |
| private <T> void |
| propertyA | back to summary |
|---|---|
| private final ObservableValue<A> propertyA | |
| updateA | back to summary |
|---|---|
| private final Consumer<B> updateA | |
| updateB | back to summary |
|---|---|
| private final Consumer<A> updateB | |
| updating | back to summary |
|---|---|
| private boolean updating | |
| BidirectionalBinding | back to summary |
|---|---|
| public BidirectionalBinding(ObservableValue<A> propertyA, ObservableValue<B> propertyB, Consumer<B> updateA, Consumer<A> updateB) | |
| changedA | back to summary |
|---|---|
| public void changedA(ObservableValue<? extends A> observable, A oldValue, A newValue) | |
| changedB | back to summary |
|---|---|
| public void changedB(ObservableValue<? extends B> observable, B oldValue, B newValue) | |
| getChangeListenerA | back to summary |
|---|---|
| public ChangeListener | |
| getChangeListenerB | back to summary |
|---|---|
| public ChangeListener | |
| updateLocked | back to summary |
|---|---|
| private <T> void updateLocked(Consumer<T> update, T oldValue, T newValue) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableList | |
| private final ObservableValue | |
| private final Consumer | |
| private final Consumer | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | BidirectionalListBinding(ObservableList<A> listProperty, ObservableValue<B> property, Consumer<B> updateA, Consumer<List<A>> updateB)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | changed(ObservableValue<? extends B> observable, B oldValue, B newValue)
Implements javafx. Called when the value of an |
| public void | onChanged(ListChangeListener.
Implements javafx. Called after a change has been made to an ObservableList. |
| listProperty | back to summary |
|---|---|
| private final ObservableList<A> listProperty | |
| property | back to summary |
|---|---|
| private final ObservableValue<B> property | |
| updateA | back to summary |
|---|---|
| private final Consumer<B> updateA | |
| updateB | back to summary |
|---|---|
| private final Consumer<List<A>> updateB | |
| updating | back to summary |
|---|---|
| private boolean updating | |
| BidirectionalListBinding | back to summary |
|---|---|
| public BidirectionalListBinding(ObservableList<A> listProperty, ObservableValue<B> property, Consumer<B> updateA, Consumer<List<A>> updateB) | |
| changed | back to summary |
|---|---|
| public void changed(ObservableValue<? extends B> observable, B oldValue, B newValue) Implements javafx. Doc from javafx. Called when the value of an In general, it is considered bad practice to modify the observed value in this method.
| |
| onChanged | back to summary |
|---|---|
| public void onChanged(ListChangeListener. Implements javafx. Doc from javafx. Called after a change has been made to an ObservableList.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableMap | |
| private final ObservableValue | |
| private final Consumer | |
| private final Consumer | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | BidirectionalMapBinding(ObservableMap<A, V> mapProperty, ObservableValue<B> property, Consumer<B> updateA, Consumer<Map<A, V>> updateB)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | changed(ObservableValue<? extends B> observable, B oldValue, B newValue)
Implements javafx. Called when the value of an |
| public void | onChanged(MapChangeListener.
Implements javafx. Called after a change has been made to an ObservableMap. |
| mapProperty | back to summary |
|---|---|
| private final ObservableMap<A, V> mapProperty | |
| property | back to summary |
|---|---|
| private final ObservableValue<B> property | |
| updateA | back to summary |
|---|---|
| private final Consumer<B> updateA | |
| updateB | back to summary |
|---|---|
| private final Consumer<Map<A, V>> updateB | |
| updating | back to summary |
|---|---|
| private boolean updating | |
| BidirectionalMapBinding | back to summary |
|---|---|
| public BidirectionalMapBinding(ObservableMap<A, V> mapProperty, ObservableValue<B> property, Consumer<B> updateA, Consumer<Map<A, V>> updateB) | |
| changed | back to summary |
|---|---|
| public void changed(ObservableValue<? extends B> observable, B oldValue, B newValue) Implements javafx. Doc from javafx. Called when the value of an In general, it is considered bad practice to modify the observed value in this method.
| |
| onChanged | back to summary |
|---|---|
| public void onChanged(MapChangeListener. Implements javafx. Doc from javafx. Called after a change has been made to an ObservableMap. This method is called on every elementary change (put/remove) once. This means, complex changes like keySet().removeAll(Collection) or clear() may result in more than one call of onChanged method.
| |