2 using System.ComponentModel;
4 namespace Tizen.NUI.Binding
6 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
7 [EditorBrowsable(EditorBrowsableState.Never)]
8 public abstract class Condition
10 Action<BindableObject, bool, bool> _conditionChanged;
18 internal Action<BindableObject, bool, bool> ConditionChanged
20 get { return _conditionChanged; }
23 if (_conditionChanged == value)
25 if (_conditionChanged != null)
26 throw new InvalidOperationException("The same condition instance can not be reused");
27 _conditionChanged = value;
31 internal bool IsSealed
33 get { return _isSealed; }
36 if (_isSealed == value)
39 throw new InvalidOperationException("What is sealed can not be unsealed.");
45 internal abstract bool GetState(BindableObject bindable);
47 internal virtual void OnSealed()
51 internal abstract void SetUp(BindableObject bindable);
52 internal abstract void TearDown(BindableObject bindable);