public class ChainedProperty<T,P> extends java.lang.Object implements javafx.beans.property.Property<P>, javafx.beans.value.ChangeListener<T>, ChangeWatcher.Trigger<T,P>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChainedProperty.PropertyGetter<B,T> |
| Constructor and Description |
|---|
ChainedProperty(ChangeWatcher<T> sourceWatcher,
ChainedProperty.PropertyGetter<T,P> targetPropertyGetter) |
ChainedProperty(javafx.beans.value.ObservableValue<T> sourceObservableValue,
ChainedProperty.PropertyGetter<T,P> targetPropertyGetter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(javafx.beans.value.ChangeListener<? super P> listener) |
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
afterChange(T newSource,
P oldValue) |
P |
beforeChange(T oldSource) |
void |
bind(javafx.beans.value.ObservableValue<? extends P> observableValue) |
void |
bindBidirectional(javafx.beans.property.Property<P> property) |
<X> ChainedProperty<P,X> |
chain(ChainedProperty.PropertyGetter<P,X> nextPropertyGetter) |
static <T,P> ChainedProperty<T,P> |
chain(ChangeWatcher<T> sourceWatcher,
ChainedProperty.PropertyGetter<T,P> targetPropertyGetter) |
static <T,P> ChainedProperty<T,P> |
chain(javafx.beans.value.ObservableValue<T> sourceObservableValue,
ChainedProperty.PropertyGetter<T,P> targetPropertyGetter) |
void |
changed(javafx.beans.value.ObservableValue<? extends T> source,
T oldSource,
T newSource) |
java.lang.Object |
getBean() |
java.lang.String |
getName() |
P |
getValue() |
boolean |
isBound() |
void |
removeListener(javafx.beans.value.ChangeListener<? super P> listener) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
setValue(P value) |
void |
unbind() |
void |
unbindBidirectional(javafx.beans.property.Property<P> property) |
public ChainedProperty(javafx.beans.value.ObservableValue<T> sourceObservableValue, ChainedProperty.PropertyGetter<T,P> targetPropertyGetter)
public ChainedProperty(ChangeWatcher<T> sourceWatcher, ChainedProperty.PropertyGetter<T,P> targetPropertyGetter)
public static <T,P> ChainedProperty<T,P> chain(javafx.beans.value.ObservableValue<T> sourceObservableValue, ChainedProperty.PropertyGetter<T,P> targetPropertyGetter)
public static <T,P> ChainedProperty<T,P> chain(ChangeWatcher<T> sourceWatcher, ChainedProperty.PropertyGetter<T,P> targetPropertyGetter)
public <X> ChainedProperty<P,X> chain(ChainedProperty.PropertyGetter<P,X> nextPropertyGetter)
public P beforeChange(T oldSource)
beforeChange in interface ChangeWatcher.Trigger<T,P>public void afterChange(T newSource, P oldValue)
afterChange in interface ChangeWatcher.Trigger<T,P>public void changed(javafx.beans.value.ObservableValue<? extends T> source, T oldSource, T newSource)
changed in interface javafx.beans.value.ChangeListener<T>public java.lang.Object getBean()
getBean in interface javafx.beans.property.ReadOnlyProperty<P>public java.lang.String getName()
getName in interface javafx.beans.property.ReadOnlyProperty<P>public P getValue()
public void setValue(P value)
setValue in interface javafx.beans.value.WritableValue<P>public void addListener(javafx.beans.value.ChangeListener<? super P> listener)
addListener in interface javafx.beans.value.ObservableValue<P>public void removeListener(javafx.beans.value.ChangeListener<? super P> listener)
removeListener in interface javafx.beans.value.ObservableValue<P>public void addListener(javafx.beans.InvalidationListener listener)
addListener in interface javafx.beans.Observablepublic void removeListener(javafx.beans.InvalidationListener listener)
removeListener in interface javafx.beans.Observablepublic void bind(javafx.beans.value.ObservableValue<? extends P> observableValue)
bind in interface javafx.beans.property.Property<P>public void bindBidirectional(javafx.beans.property.Property<P> property)
bindBidirectional in interface javafx.beans.property.Property<P>public boolean isBound()
isBound in interface javafx.beans.property.Property<P>public void unbind()
unbind in interface javafx.beans.property.Property<P>