Package io.github.mmm.value.observable
Class BidirectionalBinding<V>
java.lang.Object
io.github.mmm.value.observable.BidirectionalBinding<V>
- Type Parameters:
V- type of observedvalue.
- All Implemented Interfaces:
EventListener<ObservableEvent<V>>,ObservableEventListener<V>
ObservableEventListener for a bidirectional binding.-
Method Summary
Modifier and TypeMethodDescriptionstatic <V> BidirectionalBinding<V> bind(WritableObservableValue<V> property1, WritableObservableValue<V> property2) booleaninthashCode()booleanvoidonEvent(ObservableEvent<V> event) voidunbind()static <V> voidunbind(WritableObservableValue<V> property1, WritableObservableValue<V> property2) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.mmm.event.EventListener
matches, unwrap, weak
-
Method Details
-
onEvent
- Specified by:
onEventin interfaceEventListener<V>
-
isMatchedUsingEquals
public boolean isMatchedUsingEquals()- Specified by:
isMatchedUsingEqualsin interfaceEventListener<V>
-
equals
-
hashCode
public int hashCode() -
unbind
public void unbind()- See Also:
-
bind
public static <V> BidirectionalBinding<V> bind(WritableObservableValue<V> property1, WritableObservableValue<V> property2) - Type Parameters:
V- type of observedvalue.- Parameters:
property1- the firstWritableObservableValueto bind.property2- the secondWritableObservableValueto bind.- Returns:
- the
BidirectionalBinding. - See Also:
-
unbind
public static <V> void unbind(WritableObservableValue<V> property1, WritableObservableValue<V> property2) - Type Parameters:
V- type of observedvalue.- Parameters:
property1- the firstWritableObservableValueto unbind.property2- the secondWritableObservableValueto unbind.- See Also:
-