Package ui.common.properties
Klasse BindingUtils
java.lang.Object
ui.common.properties.BindingUtils
Additional binding utilities.
- Autor:
- ken
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidbindBidirectional(javafx.scene.control.ToggleGroup toggleGroup, javafx.beans.property.BooleanProperty configProperty) Bind a JavaFx ToggleGroup to an Boolean property.static <T extends Enum<T>>
voidbindBidirectional(javafx.scene.control.ToggleGroup toggleGroup, javafx.beans.property.ObjectProperty<T> configProperty, Class<T> clz) Bind a JavaFx ToggleGroup to an Enum property.static <T> voidbindBidirectionalThreadSafe(javafx.beans.property.ObjectProperty<T> objectProperty, javafx.beans.property.ObjectProperty<T> configProperty, Runnable runnable) Thread-save version of Bindings.bindBidirectional().
-
Konstruktordetails
-
BindingUtils
private BindingUtils()
-
-
Methodendetails
-
bindBidirectionalThreadSafe
public static <T> void bindBidirectionalThreadSafe(javafx.beans.property.ObjectProperty<T> objectProperty, javafx.beans.property.ObjectProperty<T> configProperty, Runnable runnable) Thread-save version of Bindings.bindBidirectional(). Object property is altered in the JavaFx UI-thread using Platform.runLater().- Parameter:
objectProperty- property to bind and change thread-safeconfigProperty- property to bindrunnable- runnable to hook each config property change
-
bindBidirectional
public static <T extends Enum<T>> void bindBidirectional(javafx.scene.control.ToggleGroup toggleGroup, javafx.beans.property.ObjectProperty<T> configProperty, Class<T> clz) Bind a JavaFx ToggleGroup to an Enum property. Pre-requisite: JavaFx Toggle gets a user data with the Enum value as string.- Parameter:
toggleGroup- toggle to bindconfigProperty- Enum property to bindclz- Enum class
-
bindBidirectional
public static void bindBidirectional(javafx.scene.control.ToggleGroup toggleGroup, javafx.beans.property.BooleanProperty configProperty) Bind a JavaFx ToggleGroup to an Boolean property. Pre-requisite: JavaFx Toggle gets a user data with the Boolean value as string.- Parameter:
toggleGroup- Boolean property to bindconfigProperty- Boolean property to bind
-