Package javafx.beans.property
Interface ReadOnlyProperty<T>
- Type Parameters:
T
- the type of the wrapped value
- All Superinterfaces:
Observable
,ObservableValue<T>
- All Known Subinterfaces:
Property<T>
- All Known Implementing Classes:
BooleanProperty
,BooleanPropertyBase
,ConvertedProperty
,DoubleProperty
,DoublePropertyBase
,IntegerProperty
,IntegerPropertyBase
,ListProperty
,ListPropertyBase
,LongProperty
,LongPropertyBase
,ObjectProperty
,ObjectPropertyBase
,ReadOnlyBooleanProperty
,ReadOnlyBooleanPropertyBase
,ReadOnlyDoubleProperty
,ReadOnlyIntegerProperty
,ReadOnlyIntegerPropertyBase
,ReadOnlyListProperty
,ReadOnlyLongProperty
,ReadOnlyObjectProperty
,ReadOnlyObjectPropertyBase
,ReadOnlyObjectWrapper
,ReadOnlyStringProperty
,SimpleBooleanProperty
,SimpleDoubleProperty
,SimpleIntegerProperty
,SimpleListProperty
,SimpleLongProperty
,SimpleObjectProperty
,SimpleStringProperty
,StringProperty
,StringPropertyBase
,StyleableBooleanProperty
,StyleableIntegerProperty
,StyleableObjectProperty
Generic interface that defines the methods common to all readable properties
independent of their type.
- Since:
- JavaFX 2.0
-
Method Summary
Methods inherited from interface javafx.beans.Observable
addListener, removeListener
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Method Details
-
getBean
Object getBean()Returns theObject
that contains this property. If this property is not contained in anObject
,null
is returned.- Returns:
- the containing
Object
ornull
-
getName
String getName()Returns the name of this property. If the property does not have a name, this method returns an emptyString
.- Returns:
- the name or an empty
String
-