TinyOverrideProperty¶
Overview¶
A TinyProperty that will take the value of a target Property until it is set to a value. When that happens, it will be its own standalone Property.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class TinyOverrideProperty¶
Constructor¶
new TinyOverrideProperty( targetProperty : TReadOnlyProperty<T> )¶
Instance Methods¶
setTargetProperty( targetProperty : TReadOnlyProperty<T> )¶
clearOverride()¶
Remove the "overridden" nature of this Property, so that it takes on the appearance of the targetProperty
get() : T¶
set( value : T )¶
setPropertyValue( value : T )¶
equalsValue( value : T ) : boolean¶
(protected)
We have to override here to have the getter called
notifyListeners( oldValue : T )¶
Overridden, since we need to call our getter
dispose()¶
Instance Properties¶
isOverridden¶
If true, we ignore our targetProperty and just use our value. If false, we only report the value of the targetProperty
Source Code¶
See the source for TinyOverrideProperty.ts in the axon repository.