S - type of the source objectT - type of the value of the propertypublic abstract class DelegatingValueProperty<S,T> extends ValueProperty<S,T>
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingValueProperty() |
protected |
DelegatingValueProperty(Object valueType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract IValueProperty<S,T> |
doGetDelegate(S source)
Returns the property to delegate to for the specified source object.
|
protected T |
doGetValue(S source)
Returns the value of the property on the specified source object
|
protected void |
doSetValue(S source,
T value)
Sets the source's value property to the specified vlaue
|
IValueProperty<S,T> |
getDelegate(S 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<T> |
observe(Realm realm,
S source)
Returns an observable value observing this value property on the given
property source
|
IObservableValue<T> |
observe(S source)
Returns an observable value observing this value property on the given
property source.
|
<U extends S> |
observeDetail(IObservableList<U> master)
Returns an observable list on the master observable's realm which tracks
this property on each element of
master. |
<K,V extends S> |
observeDetail(IObservableMap<K,V> 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.
|
<U extends S> |
observeDetail(IObservableSet<U> 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, valueFactoryprotected DelegatingValueProperty()
protected DelegatingValueProperty(Object valueType)
public final IValueProperty<S,T> getDelegate(S source)
source - the property source (may be null)protected abstract IValueProperty<S,T> doGetDelegate(S source)
source - the property sourceprotected T doGetValue(S source)
ValuePropertydoGetValue in class ValueProperty<S,T>source - the property sourceprotected void doSetValue(S source, T value)
ValuePropertydoSetValue in class ValueProperty<S,T>source - the property sourcevalue - the new valuepublic Object getValueType()
IValuePropertynull if untyped.null if untyped.public IObservableValue<T> observe(S source)
IValuePropertyobserve in interface IValueProperty<S,T>observe in class ValueProperty<S,T>source - the property sourcepublic IObservableValue<T> observe(Realm realm, S source)
IValuePropertyrealm - the observable's realmsource - the property sourcepublic <U extends S> IObservableList<T> observeDetail(IObservableList<U> master)
IValuePropertymaster.observeDetail in interface IValueProperty<S,T>observeDetail in class ValueProperty<S,T>master - the master observablepublic <U extends S> IObservableMap<U,T> observeDetail(IObservableSet<U> master)
IValuePropertyobserveDetail in interface IValueProperty<S,T>observeDetail in class ValueProperty<S,T>master - the master observablepublic <K,V extends S> IObservableMap<K,T> observeDetail(IObservableMap<K,V> master)
IValuePropertyobserveDetail in interface IValueProperty<S,T>observeDetail in class ValueProperty<S,T>master - the master observable
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.