Table of Contents

Class UIDataBinder

Namespace
KSP.UI.Binding.Core
Assembly
Assembly-CSharp.dll
public abstract class UIDataBinder : MonoBehaviour, IUIDataBinder, IUIDataBindable
Inheritance
UIDataBinder
Implements
Derived
Extension Methods

Constructors

UIDataBinder()

protected UIDataBinder()

Properties

BoundType

public Type BoundType { get; }

Property Value

Type

DataProperty

protected IProperty DataProperty { get; }

Property Value

IProperty

IsBound

public bool IsBound { get; }

Property Value

bool

Methods

Awake()

protected virtual void Awake()

BindData(IProperty)

public virtual void BindData(IProperty dataProperty)

Parameters

dataProperty IProperty

ClearDataCallbacks()

protected abstract void ClearDataCallbacks()

GetDataObject()

public object GetDataObject()

Returns

object

GetDataObjectAs<T>()

public T GetDataObjectAs<T>() where T : class

Returns

T

Type Parameters

T

HandleDataSwap()

protected virtual void HandleDataSwap()

OnDestroy()

protected virtual void OnDestroy()

RedrawOnBoundValueChanged(bool)

public virtual void RedrawOnBoundValueChanged(bool instant = true)

Parameters

instant bool

RedrawOnIsBoundChanged(bool)

protected virtual void RedrawOnIsBoundChanged(bool instant = true)

Parameters

instant bool

SetDataCallbacks()

protected abstract void SetDataCallbacks()

Events

IsBoundChanged

public event Action IsBoundChanged

Event Type

Action