Top Description Fields Constructors Methods
javafx.beans.property

public Class SimpleObjectProperty<T>

extends ObjectPropertyBase<T>
Class Inheritance
Known Direct Subclasses
javafx.beans.property.ReadOnlyObjectWrapper
Type Parameters
<T>
the type of the wrapped Object

This class provides a full implementation of a Property wrapping an arbitrary Object.
Since
JavaFX 2.0
See Also
ObjectPropertyBase

Field Summary

Modifier and TypeField and Description
private final Object
private static final Object
private static final String
private final String

Constructor Summary

AccessConstructor and Description
public
SimpleObjectProperty()

The constructor of ObjectProperty

public
SimpleObjectProperty(T
the initial value of the wrapped value
initialValue
)

The constructor of ObjectProperty

public
SimpleObjectProperty(Object
the bean of this ObjectProperty
bean
,
String
the name of this ObjectProperty
name
)

The constructor of ObjectProperty

public
SimpleObjectProperty(Object
the bean of this ObjectProperty
bean
,
String
the name of this ObjectProperty
name
,
T
the initial value of the wrapped value
initialValue
)

The constructor of ObjectProperty

Method Summary

Modifier and TypeMethod and Description
public Object
getBean()

Implements javafx.beans.property.ReadOnlyProperty.getBean.

Returns the Object that contains this property.

public String
getName()

Implements javafx.beans.property.ReadOnlyProperty.getName.

Returns the name of this property.

Inherited from javafx.beans.property.ObjectPropertyBase:
addListeneraddListenerbindfireValueChangedEventgetinvalidatedisBoundremoveListenerremoveListenersettoStringunbind

Field Detail

beanback to summary
private final Object bean
DEFAULT_BEANback to summary
private static final Object DEFAULT_BEAN
DEFAULT_NAMEback to summary
private static final String DEFAULT_NAME
nameback to summary
private final String name

Constructor Detail

SimpleObjectPropertyback to summary
public SimpleObjectProperty()

The constructor of ObjectProperty

SimpleObjectPropertyback to summary
public SimpleObjectProperty(T initialValue)

The constructor of ObjectProperty

Parameters
initialValue:T

the initial value of the wrapped value

SimpleObjectPropertyback to summary
public SimpleObjectProperty(Object bean, String name)

The constructor of ObjectProperty

Parameters
bean:Object

the bean of this ObjectProperty

name:String

the name of this ObjectProperty

SimpleObjectPropertyback to summary
public SimpleObjectProperty(Object bean, String name, T initialValue)

The constructor of ObjectProperty

Parameters
bean:Object

the bean of this ObjectProperty

name:String

the name of this ObjectProperty

initialValue:T

the initial value of the wrapped value

Method Detail

getBeanback to summary
public Object getBean()

Implements javafx.beans.property.ReadOnlyProperty.getBean.

Doc from javafx.beans.property.ReadOnlyProperty.getBean.

Returns the Object that contains this property. If this property is not contained in an Object, null is returned.

Returns:Object

the containing Object or null

Annotations
@Override
getNameback to summary
public String getName()

Implements javafx.beans.property.ReadOnlyProperty.getName.

Doc from javafx.beans.property.ReadOnlyProperty.getName.

Returns the name of this property. If the property does not have a name, this method returns an empty String.

Returns:String

the name or an empty String

Annotations
@Override