Class SharedVariableField<TVariable, TKValue>
public abstract class SharedVariableField<TVariable, TKValue> : BaseField<TVariable>, IBindableField where TVariable : SharedVariable<TKValue>, new()
Type Parameters
TVariableTKValue
- Inheritance
-
SharedVariableField<TVariable, TKValue>
- Implements
- Derived
Constructors
SharedVariableField(string, Type, FieldInfo)
protected SharedVariableField(string label, Type objectType, FieldInfo fieldInfo)
Parameters
Properties
ValueField
protected BaseField<TKValue> ValueField { get; }
Property Value
- BaseField<TKValue>
value
public override sealed TVariable value { get; set; }
Property Value
- TVariable
Methods
BindGraph(CeresGraphView)
public void BindGraph(CeresGraphView graph)
Parameters
graphCeresGraphView
CreateValueField()
protected abstract BaseField<TKValue> CreateValueField()
Returns
- BaseField<TKValue>
NotifyValueChange()
protected void NotifyValueChange()
OnRepaint()
protected virtual void OnRepaint()
Repaint()
Repaint SharedVariableField<TVariable, TKValue> and rebind property
public void Repaint()
SetValue(TKValue)
public void SetValue(TKValue newValue)
Parameters
newValueTKValue