Klasse BindingUtils

java.lang.Object
ui.common.properties.BindingUtils

public class BindingUtils extends Object
Additional binding utilities.
Autor:
ken
  • Konstruktorübersicht

    Konstruktoren
    Modifizierer
    Konstruktor
    Beschreibung
    private
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static void
    bindBidirectional(javafx.scene.control.ToggleGroup toggleGroup, javafx.beans.property.BooleanProperty configProperty)
    Bind a JavaFx ToggleGroup to an Boolean property.
    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.
    static <T> void
    bindBidirectionalThreadSafe(javafx.beans.property.ObjectProperty<T> objectProperty, javafx.beans.property.ObjectProperty<T> configProperty, Runnable runnable)
    Thread-save version of Bindings.bindBidirectional().

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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-safe
      configProperty - property to bind
      runnable - 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 bind
      configProperty - Enum property to bind
      clz - 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 bind
      configProperty - Boolean property to bind