Click or drag to resize

ComponentDataObserverTComponent, TData Class

Base class to observe value changes of a single data value of a component.
Inheritance Hierarchy
SystemObject
  Slash.Unity.DataBind.Foundation.ObserversComponentDataObserverTComponent, TData
    Slash.Unity.DataBind.UI.Unity.ObserversInputFieldTextObserver
    Slash.Unity.DataBind.UI.Unity.ObserversSliderValueObserver

Namespace:  Slash.Unity.DataBind.Foundation.Observers
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public abstract class ComponentDataObserver<TComponent, TData> : IDataProvider<TData>, 
	IDataProvider

Type Parameters

TComponent

[Missing <typeparam name="TComponent"/> documentation for "T:Slash.Unity.DataBind.Foundation.Observers.ComponentDataObserver`2"]

TData

[Missing <typeparam name="TData"/> documentation for "T:Slash.Unity.DataBind.Foundation.Observers.ComponentDataObserver`2"]

The ComponentDataObserverTComponent, TData type exposes the following members.

Constructors
  NameDescription
Protected methodComponentDataObserverTComponent, TData
Initializes a new instance of the ComponentDataObserverTComponent, TData class
Top
Properties
  NameDescription
Public propertyIsInitialized
Indicates if data provider is initialized to provide a valid value.
Public propertyTarget
Current target component to get data value from.
Public propertyValue
Current data value.
Top
Methods
  NameDescription
Protected methodAddListener
Register listener at target to be informed if its value changed. The target is already checked for null reference.
Protected methodGetValue
Derived classes should return the current value to set if this method is called. The target is already checked for null reference.
Protected methodOnTargetValueChanged
Has to be called by derived classes when the value may have changed.
Protected methodOnValueChanged
Should be called by a derived class if the value of the data provider changed.
Protected methodRemoveListener
Remove listener from target which was previously added in AddListener. The target is already checked for null reference.
Top
Events
  NameDescription
Public eventValueChanged
Called when the value of the property changed.
Top
See Also