Click or drag to resize

ComponentDataProviderTComponent, TData Class

Base class for a provider of a single value from a component.
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          Slash.Unity.DataBind.Core.PresentationDataBindingOperator
            Slash.Unity.DataBind.Core.PresentationDataProvider
              Slash.Unity.DataBind.Foundation.Providers.GettersComponentDataProviderTComponent, TData
                More...

Namespace:  Slash.Unity.DataBind.Foundation.Providers.Getters
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public abstract class ComponentDataProvider<TComponent, TData> : DataProvider
where TComponent : Component

Type Parameters

TComponent
Type of component to get value from.
TData
Type of data which is provided.

The ComponentDataProviderTComponent, TData type exposes the following members.

Constructors
  NameDescription
Protected methodComponentDataProviderTComponent, TData
Initializes a new instance of the ComponentDataProviderTComponent, TData class
Top
Properties
  NameDescription
Public propertyTarget
Current target component to get data value from.
Public propertyValue
Current data value.
(Overrides DataProviderValue.)
Top
Methods
  NameDescription
Protected methodAddListener
Register listener at target to be informed if its value changed. The target is already checked for null reference.
Public methodDeinit
Deinitializes the operator. By default this method removes the added bindings.
(Overrides DataBindingOperatorDeinit.)
Public methodDisable
Disable the operator.
(Overrides DataBindingOperatorDisable.)
Public methodEnable
Enable the operator.
(Overrides DataBindingOperatorEnable.)
Protected methodGetValue
Derived classes should return the current value to set if this method is called. The target is already checked for null reference.
Public methodInit
Initializes the operator. This method should be used to add bindings.
(Overrides DataBindingOperatorInit.)
Protected methodOnTargetValueChanged
Has to be called by derived classes when the value may have changed.
Protected methodRemoveListener
Remove listener from target which was previously added in AddListener. The target is already checked for null reference.
Protected methodReset
Unity callback.
Protected methodStart
Unity callback.
(Overrides DataBindingOperatorStart.)
Protected methodUpdateValue
Called when the value of the data provider should be updated.
(Overrides DataProviderUpdateValue.)
Top
Fields
  NameDescription
Public fieldTargetBinding
Target component.
Top
See Also
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          Slash.Unity.DataBind.Core.PresentationDataBindingOperator
            Slash.Unity.DataBind.Core.PresentationDataProvider
              Slash.Unity.DataBind.Foundation.Providers.GettersComponentDataProviderTComponent, TData
                Slash.Unity.DataBind.Foundation.Providers.GettersComponentGameObjectProvider
                Slash.Unity.DataBind.Foundation.Providers.GettersComponentPullDataProviderTComponent, TData
                Slash.Unity.DataBind.Foundation.Providers.GettersComponentTransformProvider
                Slash.Unity.DataBind.UI.NGUI.GettersInputValueProvider
                Slash.Unity.DataBind.UI.NGUI.GettersPopupListDataProvider
                Slash.Unity.DataBind.UI.NGUI.GettersPopupListValueProvider
                Slash.Unity.DataBind.UI.Unity.GettersInputFieldTextProvider
                Slash.Unity.DataBind.UI.Unity.GettersSliderValueProvider
                Slash.Unity.DataBind.UI.Unity.GettersToggleIsOnProvider