Package com.sun.javafx.binding
Class ExpressionHelper<T>
java.lang.Object
com.sun.javafx.binding.ExpressionHelperBase
com.sun.javafx.binding.ExpressionHelper<T>
A convenience class for creating implementations of
ObservableValue
.
It contains all of the infrastructure support for value invalidation- and
change event notification.
This implementation can handle adding and removing listeners while the
observers are being notified, but it is not thread-safe.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ExpressionHelper<T>
addListener
(ExpressionHelper<T> helper, ObservableValue<T> observable, InvalidationListener listener) static <T> ExpressionHelper<T>
addListener
(ExpressionHelper<T> helper, ObservableValue<T> observable, ChangeListener<? super T> listener) protected abstract ExpressionHelper<T>
addListener
(InvalidationListener listener) protected abstract ExpressionHelper<T>
addListener
(ChangeListener<? super T> listener) protected abstract void
static <T> void
fireValueChangedEvent
(ExpressionHelper<T> helper) static <T> ExpressionHelper<T>
removeListener
(ExpressionHelper<T> helper, InvalidationListener listener) static <T> ExpressionHelper<T>
removeListener
(ExpressionHelper<T> helper, ChangeListener<? super T> listener) protected abstract ExpressionHelper<T>
removeListener
(InvalidationListener listener) protected abstract ExpressionHelper<T>
removeListener
(ChangeListener<? super T> listener) Methods inherited from class com.sun.javafx.binding.ExpressionHelperBase
trim
-
Field Details
-
observable
-
-
Method Details
-
addListener
public static <T> ExpressionHelper<T> addListener(ExpressionHelper<T> helper, ObservableValue<T> observable, InvalidationListener listener) -
removeListener
public static <T> ExpressionHelper<T> removeListener(ExpressionHelper<T> helper, InvalidationListener listener) -
addListener
public static <T> ExpressionHelper<T> addListener(ExpressionHelper<T> helper, ObservableValue<T> observable, ChangeListener<? super T> listener) -
removeListener
public static <T> ExpressionHelper<T> removeListener(ExpressionHelper<T> helper, ChangeListener<? super T> listener) -
fireValueChangedEvent
-
addListener
-
removeListener
-
addListener
-
removeListener
-
fireValueChangedEvent
protected abstract void fireValueChangedEvent()
-