S
- type of the source objectT
- type of the value of the propertypublic interface IValueProperty<S,T> extends IProperty
ValueProperty
,
SimpleValueProperty
Modifier and Type | Method and Description |
---|---|
T |
getValue(S source)
Returns the current value of this property on the specified property
source.
|
Object |
getValueType()
Returns the value type of the property, or
null if untyped. |
<E> IListProperty<S,E> |
list(IListProperty<? super T,E> detailList)
Returns the nested combination of this property and the specified detail
list property.
|
<K,V> IMapProperty<S,K,V> |
map(IMapProperty<? super T,K,V> detailMap)
Returns the nested combination of this property and the specified detail
map property.
|
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.
|
<M extends S> |
observeDetail(IObservableList<M> 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.
|
<M extends S> |
observeDetail(IObservableSet<M> 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.
|
<M extends S> |
observeDetail(IObservableValue<M> master)
Returns an observable value on the master observable's realm which tracks
this property on the current value of
master . |
<E> ISetProperty<S,E> |
set(ISetProperty<? super T,E> detailSet)
Returns the nested combination of this property and the specified detail
set property.
|
void |
setValue(S source,
T value)
Sets this property on the specified property source to the specified
value.
|
<M> IValueProperty<S,M> |
value(IValueProperty<? super T,M> detailValue)
Returns the nested combination of this property and the specified detail
value property.
|
IObservableFactory<S,IObservableValue<T>> |
valueFactory()
Returns a factory for creating observable values tracking this property
of a particular property source.
|
IObservableFactory<S,IObservableValue<T>> |
valueFactory(Realm realm)
Returns a factory for creating observable values in the given realm,
tracking this property of a particular property source.
|
Object getValueType()
null
if untyped.null
if untyped.T getValue(S source)
source
- the property source (may be null)void setValue(S source, T value)
Note: This method is made available to facilitate basic property
access. However if the property source lacks property change
notification, then observables on the source object may not be notified
of the change. In most cases it is preferable to call
IObservableValue.setValue(Object)
on the observable instead.
source
- the property source (may be null)value
- the new property valueIObservableValue<T> observe(S source)
source
- the property sourceIObservableValue<T> observe(Realm realm, S source)
realm
- the observable's realmsource
- the property sourceIObservableFactory<S,IObservableValue<T>> valueFactory()
IObservableFactory<S,IObservableValue<T>> valueFactory(Realm realm)
realm
- the realm<M extends S> IObservableValue<T> observeDetail(IObservableValue<M> master)
master
.master
- the master observablemaster
.<M extends S> IObservableList<T> observeDetail(IObservableList<M> master)
master
.master
- the master observable<M extends S> IObservableMap<M,T> observeDetail(IObservableSet<M> master)
master
- the master observable<K,V extends S> IObservableMap<K,T> observeDetail(IObservableMap<K,V> master)
master
- the master observable<M> IValueProperty<S,M> value(IValueProperty<? super T,M> detailValue)
detailValue
- the detail property<E> IListProperty<S,E> list(IListProperty<? super T,E> detailList)
detailList
- the detail property<E> ISetProperty<S,E> set(ISetProperty<? super T,E> detailSet)
detailSet
- the detail property<K,V> IMapProperty<S,K,V> map(IMapProperty<? super T,K,V> detailMap)
detailMap
- the detail property
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.