public class ReadOnlyObjectWrapper<T> extends SimpleObjectProperty<T>
Modifier and Type | Class and Description |
---|---|
private class |
ReadOnlyObjectWrapper.ReadOnlyPropertyImpl |
Modifier and Type | Field and Description |
---|---|
private ReadOnlyObjectWrapper.ReadOnlyPropertyImpl |
readOnlyProperty |
Constructor and Description |
---|
ReadOnlyObjectWrapper()
The constructor of
ReadOnlyObjectWrapper |
ReadOnlyObjectWrapper(java.lang.Object bean,
java.lang.String name)
The constructor of
ReadOnlyObjectWrapper |
ReadOnlyObjectWrapper(java.lang.Object bean,
java.lang.String name,
T initialValue)
The constructor of
ReadOnlyObjectWrapper |
ReadOnlyObjectWrapper(T initialValue)
The constructor of
ReadOnlyObjectWrapper |
Modifier and Type | Method and Description |
---|---|
protected void |
fireValueChangedEvent()
Sends notifications to all attached
InvalidationListeners and
ChangeListeners . |
ReadOnlyObjectProperty<T> |
getReadOnlyProperty()
Returns the readonly property, that is synchronized with this
ReadOnlyObjectWrapper . |
getBean, getName
addListener, addListener, bind, get, invalidated, isBound, removeListener, removeListener, set, toString, unbind
bindBidirectional, setValue, unbindBidirectional
private ReadOnlyObjectWrapper.ReadOnlyPropertyImpl readOnlyProperty
public ReadOnlyObjectWrapper()
ReadOnlyObjectWrapper
public ReadOnlyObjectWrapper(T initialValue)
ReadOnlyObjectWrapper
initialValue
- the initial value of the wrapped valuepublic ReadOnlyObjectWrapper(java.lang.Object bean, java.lang.String name)
ReadOnlyObjectWrapper
bean
- the bean of this ReadOnlyObjectProperty
name
- the name of this ReadOnlyObjectProperty
public ReadOnlyObjectWrapper(java.lang.Object bean, java.lang.String name, T initialValue)
ReadOnlyObjectWrapper
bean
- the bean of this ReadOnlyObjectProperty
name
- the name of this ReadOnlyObjectProperty
initialValue
- the initial value of the wrapped valuepublic ReadOnlyObjectProperty<T> getReadOnlyProperty()
ReadOnlyObjectWrapper
.protected void fireValueChangedEvent()
InvalidationListeners
and
ChangeListeners
.
This method is called when the value is changed, either manually by
calling ObjectPropertyBase.set(T)
or in case of a bound property, if the
binding becomes invalid.fireValueChangedEvent
in class ObjectPropertyBase<T>