Package javafx.beans.value
package javafx.beans.value
The package javafx.beans.value
contains the two
fundamental interfaces ObservableValue
and WritableValue
and all of its sub-interfaces.
ObservableValue
An ObservableValue wraps a value that can be read and observed for invalidations and changes. Listeners have to implement eitherInvalidationListener
or ChangeListener
. To allow
working with primitive types directly a number of sub-interfaces are
defined.
Type | Sub-interface of ObservableValue |
---|---|
boolean |
ObservableBooleanValue |
double |
ObservableDoubleValue |
float |
ObservableFloatValue |
int |
ObservableIntegerValue |
long |
ObservableLongValue |
double , float , int , long |
ObservableNumberValue |
Object |
ObservableObjectValue |
String |
ObservableStringValue |
WritableValue
A WritableValue wraps a value that can be read and set. As with
ObservableValues
, a number of sub-interfaces are defined to work with
primitive types directly.
Type | Sub-interface of WritableValue |
---|---|
boolean |
WritableBooleanValue |
double |
WritableDoubleValue |
float |
WritableFloatValue |
int |
WritableIntegerValue |
long |
WritableLongValue |
double , float , int , long |
WritableNumberValue |
Object |
WritableObjectValue |
String |
WritableStringValue |
-
ClassDescriptionA
ChangeListener
is notified whenever the value of anObservableValue
changes.An observable boolean value.An observable double value.An observable float value.An observable integer value.An observable reference to anObservableList
.An observable long value.ObservableMapValue<K,V> An observable reference to anObservableMap
.A common interface of all sub-interfaces ofObservableValue
that wrap a number.An observable typedObject
value.An observable reference to anObservableSet
.An observable String value.AnObservableValue
is an entity that wraps a value and allows to observe the value for changes.A convenience class for creating implementations ofObservableValue
.AWeakChangeListener
can be used if anObservableValue
should only maintain a weak reference to the listener.A writable boolean value.A writable double value.A writable float value.A writable int value.A writable reference to anObservableList
.A writable long value.WritableMapValue<K,V> A writable reference to anObservableMap
.A tagging interface that marks all sub-interfaces ofWritableValue
that wrap a number.A writable typed value.A writable reference to anObservableSet
.A writable String.AWritableValue
is an entity that wraps a value that can be read and set.