Package javafx.beans.property
The package javafx.beans.property
defines read-only
properties and writable properties, plus a number of implementations.
Read-only Properties
Read-only properties have two getters, get()
returns the
primitive value, getValue()
returns the boxed value.
It is possible to observe read-only properties for changes. They
define methods to add and remove InvalidationListeners
and ChangeListeners
.
To get the context of a read-only property, two methods
getBean()
and getName()
are defined. They return the
containing bean and the name of a property.
Writable Properties
In addition to the functionality defined for read-only properties, writable properties contain the following methods.
A writable property defines two setters in addition to the
getters defined for read-only properties. The setter set()
takes a primitive value, the second setter setValue()
takes
the boxed value.
All properties can be bound to ObservableValues
of the same type,
which means that the property will always contain the same value as
the bound ObservableValue
. It is also possible to define a
bidirectional binding between two properties, so that both properties
always contain the same value. If one of the properties changes, the
other one will be updated.
-
ClassDescriptionThis class provides a full implementation of a
Property
wrapping aboolean
value.The classBooleanPropertyBase
is the base class for a property wrapping aboolean
value.This class defines aProperty
wrapping adouble
value.The classDoublePropertyBase
is the base class for a property wrapping adouble
value.This class defines aProperty
wrapping afloat
value.The classFloatPropertyBase
is the base class for a property wrapping afloat
value.This class defines aProperty
wrapping anint
value.The classIntegerPropertyBase
is the base class for a property wrapping aint
value.ListProperty<E>This class provides a full implementation of aProperty
wrapping anObservableList
.The classListPropertyBase
is the base class for a property wrapping anObservableList
.This class defines aProperty
wrapping along
value.The classLongPropertyBase
is the base class for a property wrapping along
value.MapProperty<K,V> This class provides a full implementation of aProperty
wrapping anObservableMap
.MapPropertyBase<K,V> The classMapPropertyBase
is the base class for a property wrapping anObservableMap
.This class provides a full implementation of aProperty
wrapping an arbitraryObject
.The classObjectPropertyBase
is the base class for a property wrapping an arbitraryObject
.Property<T>Generic interface that defines the methods common to all (writable) properties, independent of their type.Superclass for all readonly properties wrapping aboolean
.Base class for all readonly properties wrapping aboolean
.This class provides a convenient class to define read-only properties.Superclass for all readonly properties wrapping adouble
.Base class for all readonly properties wrapping adouble
.This class provides a convenient class to define read-only properties.Superclass for all readonly properties wrapping afloat
.Base class for all readonly properties wrapping afloat
.This class provides a convenient class to define read-only properties.Superclass for all readonly properties wrapping anint
.Base class for all readonly properties wrapping anint
.This class provides a convenient class to define read-only properties.Superclass for all readonly properties wrapping anObservableList
.Base class for all readonly properties wrapping anObservableList
.This class provides a convenient class to define read-only properties.Superclass for all readonly properties wrapping along
.Base class for all readonly properties wrapping along
.This class provides a convenient class to define read-only properties.ReadOnlyMapProperty<K,V> Superclass for all readonly properties wrapping anObservableMap
.Base class for all readonly properties wrapping anObservableMap
.ReadOnlyMapWrapper<K,V> This class provides a convenient class to define read-only properties.Superclass for all readonly properties wrapping an arbitraryObject
.Base class for all readonly properties wrapping an arbitraryObject
.This class provides a convenient class to define read-only properties.Generic interface that defines the methods common to all readable properties independent of their type.Superclass for all readonly properties wrapping anObservableSet
.Base class for all readonly properties wrapping anObservableSet
.This class provides a convenient class to define read-only properties.Superclass for all readonly properties wrapping anString
.Base class for all readonly properties wrapping aString
.This class provides a convenient class to define read-only properties.SetProperty<E>This class provides a full implementation of aProperty
wrapping anObservableSet
.The classSetPropertyBase
is the base class for a property wrapping anObservableSet
.This class provides a full implementation of aProperty
wrapping aboolean
value.This class provides a full implementation of aProperty
wrapping adouble
value.This class provides a full implementation of aProperty
wrapping afloat
value.This class provides a full implementation of aProperty
wrapping aint
value.This class provides a full implementation of aProperty
wrapping anObservableList
.This class provides a full implementation of aProperty
wrapping along
value.SimpleMapProperty<K,V> This class provides a full implementation of aProperty
wrapping anObservableMap
.This class provides a full implementation of aProperty
wrapping an arbitraryObject
.This class provides a full implementation of aProperty
wrapping anObservableSet
.This class provides a full implementation of aProperty
wrapping aString
value.This class provides a full implementation of aProperty
wrapping aString
value.The classStringPropertyBase
is the base class for a property wrapping aString
value.