public abstract class BidirectionalBinding<T> extends java.lang.Object implements ChangeListener<T>, WeakListener
Modifier and Type | Class and Description |
---|---|
private static class |
BidirectionalBinding.BidirectionalBooleanBinding |
private static class |
BidirectionalBinding.BidirectionalDoubleBinding |
private static class |
BidirectionalBinding.BidirectionalFloatBinding |
private static class |
BidirectionalBinding.BidirectionalIntegerBinding |
private static class |
BidirectionalBinding.BidirectionalLongBinding |
static class |
BidirectionalBinding.StringConversionBidirectionalBinding<T> |
private static class |
BidirectionalBinding.StringConverterBidirectionalBinding<T> |
private static class |
BidirectionalBinding.StringFormatBidirectionalBinding |
private static class |
BidirectionalBinding.TypedGenericBidirectionalBinding<T> |
private static class |
BidirectionalBinding.TypedNumberBidirectionalBinding<T extends java.lang.Number> |
private static class |
BidirectionalBinding.UntypedGenericBidirectionalBinding |
Modifier and Type | Field and Description |
---|---|
private int |
cachedHashCode |
Modifier | Constructor and Description |
---|---|
private |
BidirectionalBinding(java.lang.Object property1,
java.lang.Object property2) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
bind(Property<java.lang.String> stringProperty,
Property<?> otherProperty,
java.text.Format format) |
static <T> java.lang.Object |
bind(Property<java.lang.String> stringProperty,
Property<T> otherProperty,
StringConverter<T> converter) |
static <T> BidirectionalBinding |
bind(Property<T> property1,
Property<T> property2) |
static BidirectionalBinding |
bindNumber(DoubleProperty property1,
Property<java.lang.Double> property2) |
static BidirectionalBinding |
bindNumber(FloatProperty property1,
Property<java.lang.Float> property2) |
static BidirectionalBinding |
bindNumber(IntegerProperty property1,
Property<java.lang.Integer> property2) |
static BidirectionalBinding |
bindNumber(LongProperty property1,
Property<java.lang.Long> property2) |
static BidirectionalBinding |
bindNumber(Property<java.lang.Double> property1,
DoubleProperty property2) |
static BidirectionalBinding |
bindNumber(Property<java.lang.Float> property1,
FloatProperty property2) |
static BidirectionalBinding |
bindNumber(Property<java.lang.Integer> property1,
IntegerProperty property2) |
static BidirectionalBinding |
bindNumber(Property<java.lang.Long> property1,
LongProperty property2) |
private static <T extends java.lang.Number> |
bindNumber(Property<T> property1,
Property<java.lang.Number> property2) |
private static <T extends java.lang.Number> |
bindNumberObject(Property<java.lang.Number> property1,
Property<T> property2) |
private static void |
checkParameters(java.lang.Object property1,
java.lang.Object property2) |
boolean |
equals(java.lang.Object obj) |
protected abstract java.lang.Object |
getProperty1() |
protected abstract java.lang.Object |
getProperty2() |
int |
hashCode() |
static void |
unbind(java.lang.Object property1,
java.lang.Object property2) |
static <T> void |
unbind(Property<T> property1,
Property<T> property2) |
static <T extends java.lang.Number> |
unbindNumber(Property<T> property1,
Property<java.lang.Number> property2) |
boolean |
wasGarbageCollected()
Returns
true if the linked listener was garbage-collected. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
changed
private BidirectionalBinding(java.lang.Object property1, java.lang.Object property2)
private static void checkParameters(java.lang.Object property1, java.lang.Object property2)
public static <T> BidirectionalBinding bind(Property<T> property1, Property<T> property2)
public static java.lang.Object bind(Property<java.lang.String> stringProperty, Property<?> otherProperty, java.text.Format format)
public static <T> java.lang.Object bind(Property<java.lang.String> stringProperty, Property<T> otherProperty, StringConverter<T> converter)
public static void unbind(java.lang.Object property1, java.lang.Object property2)
public static BidirectionalBinding bindNumber(Property<java.lang.Integer> property1, IntegerProperty property2)
public static BidirectionalBinding bindNumber(Property<java.lang.Long> property1, LongProperty property2)
public static BidirectionalBinding bindNumber(Property<java.lang.Float> property1, FloatProperty property2)
public static BidirectionalBinding bindNumber(Property<java.lang.Double> property1, DoubleProperty property2)
public static BidirectionalBinding bindNumber(IntegerProperty property1, Property<java.lang.Integer> property2)
public static BidirectionalBinding bindNumber(LongProperty property1, Property<java.lang.Long> property2)
public static BidirectionalBinding bindNumber(FloatProperty property1, Property<java.lang.Float> property2)
public static BidirectionalBinding bindNumber(DoubleProperty property1, Property<java.lang.Double> property2)
private static <T extends java.lang.Number> BidirectionalBinding bindNumberObject(Property<java.lang.Number> property1, Property<T> property2)
private static <T extends java.lang.Number> BidirectionalBinding bindNumber(Property<T> property1, Property<java.lang.Number> property2)
public static <T extends java.lang.Number> void unbindNumber(Property<T> property1, Property<java.lang.Number> property2)
protected abstract java.lang.Object getProperty1()
protected abstract java.lang.Object getProperty2()
public int hashCode()
hashCode
in class java.lang.Object
public boolean wasGarbageCollected()
WeakListener
true
if the linked listener was garbage-collected.
In this case, the listener can be removed from the observable.wasGarbageCollected
in interface WeakListener
true
if the linked listener was garbage-collected.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object