T
- the type of the wrapped Object
public class SimpleObjectProperty<T> extends ObjectPropertyBase<T>
Property
wrapping an
arbitrary Object
.ObjectPropertyBase
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
bean |
private static java.lang.Object |
DEFAULT_BEAN |
private static java.lang.String |
DEFAULT_NAME |
private java.lang.String |
name |
Constructor and Description |
---|
SimpleObjectProperty()
The constructor of
ObjectProperty |
SimpleObjectProperty(java.lang.Object bean,
java.lang.String name)
The constructor of
ObjectProperty |
SimpleObjectProperty(java.lang.Object bean,
java.lang.String name,
T initialValue)
The constructor of
ObjectProperty |
SimpleObjectProperty(T initialValue)
The constructor of
ObjectProperty |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getBean()
Returns the
Object that contains this property. |
java.lang.String |
getName()
Returns the name of this property.
|
addListener, addListener, bind, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, set, toString, unbind
bindBidirectional, setValue, unbindBidirectional
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getValue
getValue
private static final java.lang.Object DEFAULT_BEAN
private static final java.lang.String DEFAULT_NAME
private final java.lang.Object bean
private final java.lang.String name
public SimpleObjectProperty()
ObjectProperty
public SimpleObjectProperty(T initialValue)
ObjectProperty
initialValue
- the initial value of the wrapped valuepublic SimpleObjectProperty(java.lang.Object bean, java.lang.String name)
ObjectProperty
bean
- the bean of this ObjectProperty
name
- the name of this ObjectProperty
public SimpleObjectProperty(java.lang.Object bean, java.lang.String name, T initialValue)
ObjectProperty
bean
- the bean of this ObjectProperty
name
- the name of this ObjectProperty
initialValue
- the initial value of the wrapped valuepublic java.lang.Object getBean()
Object
that contains this property. If this property
is not contained in an Object
, null
is returned.Object
or null
public java.lang.String getName()
String
.String