Spec-Zone .ru
спецификации, руководства, описания, API
|
T
- the type of the wrapped Object
public abstract class ObjectProperty<T> extends ReadOnlyObjectProperty<T> implements Property<T>, WritableObjectValue<T>
Property
wrapping an
arbitrary Object
.
The value of a ObjectProperty
can be get and set with ObservableObjectValue.get()
,
ObjectExpression.getValue()
, WritableObjectValue.set(Object)
, and setValue(Object)
.
A property can be bound and unbound unidirectional with
Property.bind(ObservableValue)
and Property.unbind()
. Bidirectional bindings
can be created and removed with bindBidirectional(Property)
and
unbindBidirectional(Property)
.
The context of a ObjectProperty
can be read with ReadOnlyProperty.getBean()
and ReadOnlyProperty.getName()
.Constructor and Description |
---|
ObjectProperty() |
Modifier and Type | Method and Description |
---|---|
void |
bindBidirectional(Property<T> other)
Create a bidirectional binding between this
Property and another
one. |
void |
setValue(T v)
Set the wrapped value.
|
java.lang.String |
toString()
Returns a string representation of this
ObjectProperty object. |
void |
unbindBidirectional(Property<T> other)
Remove a bidirectional binding between this
Property and another
one. |
equals, hashCode
getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBean, getName
addListener, getValue, removeListener
addListener, removeListener
get, set
getValue
get
public void setValue(T v)
setValue
in interface WritableValue<T>
v
- The new valuepublic void bindBidirectional(Property<T> other)
Property
and another
one.bindBidirectional
in interface Property<T>
other
- the other Property
public void unbindBidirectional(Property<T> other)
Property
and another
one.
If no bidirectional binding between the properties exists, calling this
method has no effect.unbindBidirectional
in interface Property<T>
other
- the other Property
public java.lang.String toString()
ObjectProperty
object.toString
in class ReadOnlyObjectProperty<T>
ObjectProperty
object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to