public abstract class DelegatingValueProperty extends ValueProperty
Modifier | Constructor and Description |
---|---|
protected |
DelegatingValueProperty() |
protected |
DelegatingValueProperty(Object valueType) |
Modifier and Type | Method and Description |
---|---|
protected abstract IValueProperty |
doGetDelegate(Object source)
Returns the property to delegate to for the specified source object.
|
protected Object |
doGetValue(Object source)
Returns the value of the property on the specified source object
|
protected void |
doSetValue(Object source,
Object value)
Sets the source's value property to the specified vlaue
|
IValueProperty |
getDelegate(Object source)
Returns the property to delegate to for the specified source object.
|
Object |
getValueType()
Returns the value type of the property, or
null if untyped. |
IObservableValue |
observe(Object source)
Returns an observable value observing this value property on the given
property source.
|
IObservableValue |
observe(Realm realm,
Object source)
Returns an observable value observing this value property on the given
property source
|
IObservableList |
observeDetail(IObservableList master)
Returns an observable list on the master observable's realm which tracks
this property on each element of
master . |
IObservableMap |
observeDetail(IObservableMap master)
Returns an observable map on the master observable's realm where the
map's key set is the same as the master observable map, and where each
value is the property value of the corresponding value in the master
observable map.
|
IObservableMap |
observeDetail(IObservableSet master)
Returns an observable map on the master observable's realm where the
map's key set is the specified master set, and where each key maps to the
current property value for each element.
|
getValue, list, map, observeDetail, set, setValue, value, valueFactory, valueFactory
protected DelegatingValueProperty()
protected DelegatingValueProperty(Object valueType)
public final IValueProperty getDelegate(Object source)
source
- the property source (may be null)protected abstract IValueProperty doGetDelegate(Object source)
source
- the property sourceprotected Object doGetValue(Object source)
ValueProperty
doGetValue
in class ValueProperty
source
- the property sourceprotected void doSetValue(Object source, Object value)
ValueProperty
doSetValue
in class ValueProperty
source
- the property sourcevalue
- the new valuepublic Object getValueType()
IValueProperty
null
if untyped.null
if untyped.public IObservableValue observe(Object source)
IValueProperty
observe
in interface IValueProperty
observe
in class ValueProperty
source
- the property sourcepublic IObservableValue observe(Realm realm, Object source)
IValueProperty
realm
- the observable's realmsource
- the property sourcepublic IObservableList observeDetail(IObservableList master)
IValueProperty
master
.observeDetail
in interface IValueProperty
observeDetail
in class ValueProperty
master
- the master observablepublic IObservableMap observeDetail(IObservableSet master)
IValueProperty
observeDetail
in interface IValueProperty
observeDetail
in class ValueProperty
master
- the master observablepublic IObservableMap observeDetail(IObservableMap master)
IValueProperty
observeDetail
in interface IValueProperty
observeDetail
in class ValueProperty
master
- the master observable
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.