T- the type of the wrapped
public abstract class ObjectProperty<T> extends ReadOnlyObjectProperty<T> implements Property<T>, WritableObjectValue<T>
Propertywrapping an arbitrary
Object. The value of a
ObjectPropertycan be get and set with
setValue(Object). A property can be bound and unbound unidirectional with
Property.unbind(). Bidirectional bindings can be created and removed with
unbindBidirectional(Property). The context of a
ObjectPropertycan be read with
ReadOnlyProperty.getName(). For specialized implementations for
ObservableMapthat also report changes inside the collections, see
|Constructor and Description|
|Modifier and Type||Method and Description|
Create a bidirectional binding between this
Set the wrapped value.
Returns a string representation of this
Remove a bidirectional binding between this
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getValue, removeListener
public void setValue(T v)
Propertyand another one. Bidirectional bindings exists independently of unidirectional bindings. So it is possible to add unidirectional binding to a property with bidirectional binding and vice-versa. However, this practice is discouraged. It is possible to have multiple bidirectional bindings of one Property.
Propertyand another one. If no bidirectional binding between the properties exists, calling this method has no effect. It is possible to unbind by a call on the second property. This code will work:
Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.