Module com.iamsoft.util.ui
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
ConstructorsConstructorDescriptionSwingFxPropertyBinding(String pProperty, C pComponent, Function<C, T> pFunction) -
Method Summary
Methods inherited from class javafx.beans.binding.ObjectBinding
addListener, addListener, allowValidation, bind, dispose, get, getDependencies, invalidate, isObserved, isValid, onInvalidating, removeListener, removeListener, toString, unbindMethods inherited from class javafx.beans.binding.ObjectExpression
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.beans.value.ObservableValue
flatMap, getValue, map, orElse, when
-
Constructor Details
-
SwingFxPropertyBinding
-
-
Method Details
-
computeValue
- Specified by:
computeValuein classjavafx.beans.binding.ObjectBinding<T>
-