Class SwingFxPropertyBinding<T>

java.lang.Object
javafx.beans.binding.ObjectExpression<T>
javafx.beans.binding.ObjectBinding<T>
com.iamsoft.util.ui.javafx.swingfx.SwingFxPropertyBinding<T>
Type Parameters:
T - Type of element returned. Note that proper synchronization should be applied if returned object is mutable.
All Implemented Interfaces:
javafx.beans.binding.Binding<T>, javafx.beans.Observable, javafx.beans.value.ObservableObjectValue<T>, javafx.beans.value.ObservableValue<T>

public class SwingFxPropertyBinding<T> extends javafx.beans.binding.ObjectBinding<T>
Listen for changes of the specified property on the Swing UI thread and invalidate on the JavaFX UI thread. Value is computed on the Swing UI thread.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SwingFxPropertyBinding(String pProperty, C pComponent, Function<C,T> pFunction)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected T
     

    Methods inherited from class javafx.beans.binding.ObjectBinding

    addListener, addListener, allowValidation, bind, dispose, get, getDependencies, invalidate, isObserved, isValid, onInvalidating, removeListener, removeListener, toString, unbind

    Methods inherited from class javafx.beans.binding.ObjectExpression

    asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface javafx.beans.value.ObservableValue

    flatMap, getValue, map, orElse, when
  • Constructor Details

    • SwingFxPropertyBinding

      public SwingFxPropertyBinding(String pProperty, C pComponent, Function<C,T> pFunction)
  • Method Details

    • computeValue

      protected T computeValue()
      Specified by:
      computeValue in class javafx.beans.binding.ObjectBinding<T>