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.
-
Interface Summary Interface Description Property<T> Generic interface that defines the methods common to all (writable) properties independent of their type.ReadOnlyProperty<T> Generic interface that defines the methods common to all readable properties independent of their type. -
Class Summary Class Description BooleanProperty This class provides a full implementation of aProperty
wrapping aboolean
value.BooleanPropertyBase The classBooleanPropertyBase
is the base class for a property wrapping aboolean
value.DoubleProperty This class defines aProperty
wrapping adouble
value.DoublePropertyBase The classDoublePropertyBase
is the base class for a property wrapping adouble
value.FloatProperty This class defines aProperty
wrapping afloat
value.FloatPropertyBase The classFloatPropertyBase
is the base class for a property wrapping afloat
value.IntegerProperty This class defines aProperty
wrapping anint
value.IntegerPropertyBase The classIntegerPropertyBase
is the base class for a property wrapping aint
value.ListProperty<E> This class provides a full implementation of aProperty
wrapping anObservableList
.ListPropertyBase<E> The classListPropertyBase
is the base class for a property wrapping anObservableList
.LongProperty This class defines aProperty
wrapping along
value.LongPropertyBase 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
.ObjectProperty<T> This class provides a full implementation of aProperty
wrapping an arbitraryObject
.ObjectPropertyBase<T> The classObjectPropertyBase
is the base class for a property wrapping an arbitraryObject
.ReadOnlyBooleanProperty Superclass for all readonly properties wrapping aboolean
.ReadOnlyBooleanPropertyBase Base class for all readonly properties wrapping aboolean
.ReadOnlyBooleanWrapper This class provides a convenient class to define read-only properties.ReadOnlyDoubleProperty Superclass for all readonly properties wrapping adouble
.ReadOnlyDoublePropertyBase Base class for all readonly properties wrapping adouble
.ReadOnlyDoubleWrapper This class provides a convenient class to define read-only properties.ReadOnlyFloatProperty Superclass for all readonly properties wrapping afloat
.ReadOnlyFloatPropertyBase Base class for all readonly properties wrapping afloat
.ReadOnlyFloatWrapper This class provides a convenient class to define read-only properties.ReadOnlyIntegerProperty Superclass for all readonly properties wrapping anint
.ReadOnlyIntegerPropertyBase Base class for all readonly properties wrapping anint
.ReadOnlyIntegerWrapper This class provides a convenient class to define read-only properties.ReadOnlyListProperty<E> Superclass for all readonly properties wrapping anObservableList
.ReadOnlyListPropertyBase<E> Base class for all readonly properties wrapping anObservableList
.ReadOnlyListWrapper<E> This class provides a convenient class to define read-only properties.ReadOnlyLongProperty Superclass for all readonly properties wrapping along
.ReadOnlyLongPropertyBase Base class for all readonly properties wrapping along
.ReadOnlyLongWrapper This class provides a convenient class to define read-only properties.ReadOnlyMapProperty<K,V> Superclass for all readonly properties wrapping anObservableMap
.ReadOnlyMapPropertyBase<K,V> Base class for all readonly properties wrapping anObservableMap
.ReadOnlyMapWrapper<K,V> This class provides a convenient class to define read-only properties.ReadOnlyObjectProperty<T> Superclass for all readonly properties wrapping an arbitraryObject
.ReadOnlyObjectPropertyBase<T> Base class for all readonly properties wrapping an arbitraryObject
.ReadOnlyObjectWrapper<T> This class provides a convenient class to define read-only properties.ReadOnlySetProperty<E> Superclass for all readonly properties wrapping anObservableSet
.ReadOnlySetPropertyBase<E> Base class for all readonly properties wrapping anObservableSet
.ReadOnlySetWrapper<E> This class provides a convenient class to define read-only properties.ReadOnlyStringProperty Superclass for all readonly properties wrapping anString
.ReadOnlyStringPropertyBase Base class for all readonly properties wrapping aString
.ReadOnlyStringWrapper This class provides a convenient class to define read-only properties.SetProperty<E> This class provides a full implementation of aProperty
wrapping anObservableSet
.SetPropertyBase<E> The classSetPropertyBase
is the base class for a property wrapping anObservableSet
.SimpleBooleanProperty This class provides a full implementation of aProperty
wrapping aboolean
value.SimpleDoubleProperty This class provides a full implementation of aProperty
wrapping adouble
value.SimpleFloatProperty This class provides a full implementation of aProperty
wrapping afloat
value.SimpleIntegerProperty This class provides a full implementation of aProperty
wrapping aint
value.SimpleListProperty<E> This class provides a full implementation of aProperty
wrapping anObservableList
.SimpleLongProperty This class provides a full implementation of aProperty
wrapping along
value.SimpleMapProperty<K,V> This class provides a full implementation of aProperty
wrapping anObservableMap
.SimpleObjectProperty<T> This class provides a full implementation of aProperty
wrapping an arbitraryObject
.SimpleSetProperty<E> This class provides a full implementation of aProperty
wrapping anObservableSet
.SimpleStringProperty This class provides a full implementation of aProperty
wrapping aString
value.StringProperty This class provides a full implementation of aProperty
wrapping aString
value.StringPropertyBase The classStringPropertyBase
is the base class for a property wrapping aString
value.