Object
Property wrapping an
arbitrary Object.
The value of a ObjectProperty can be get and set with get(),
getValue(), set(Object), and setValue(Object).
A property can be bound and unbound unidirectional with
bind(ObservableValue) and unbind(). Bidirectional bindings
can be created and removed with bindBidirectional(Property) and
unbindBidirectional(Property).
The context of a ObjectProperty can be read with getBean()
and getName().
For specialized implementations for ObservableList, ObservableSet and
ObservableMap that also report changes inside the collections, see
ListProperty, SetProperty and MapProperty, respectively.
javafx.beans.value.ObservableObjectValue , javafx.beans.value.WritableObjectValue , ReadOnlyObjectProperty, Property
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | bindBidirectional(Property<T>
the other other)PropertyImplements javafx. Create a bidirectional binding between this |
| public void | setValue(T
The new value v)Implements javafx. Set the wrapped value. |
| public String | Returns: a string representation of thisObjectProperty object.Overrides javafx. Returns a string representation of this |
| public void | unbindBidirectional(Property<T>
the other other)PropertyImplements javafx. Removes a bidirectional binding between this |
| ObjectProperty | back to summary |
|---|---|
| public ObjectProperty() Creates a default | |
| bindBidirectional | back to summary |
|---|---|
| public void bindBidirectional(Property<T> other) Implements javafx. Doc from javafx. Create a bidirectional binding between this It is possible to have multiple bidirectional bindings of one Property. JavaFX bidirectional binding implementation use weak listeners. This means bidirectional binding does not prevent properties from being garbage collected. | |
| setValue | back to summary |
|---|---|
| public void setValue(T v) Implements javafx. Doc from javafx. Set the wrapped value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |
| unbindBidirectional | back to summary |
|---|---|
| public void unbindBidirectional(Property<T> other) Implements javafx. Doc from javafx. Removes a bidirectional binding between this
| |