Class DataFormSwitchEditor
Represents a class to handle the bool type property editor with UISwitch.
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.Android.DataForm.Editors
Assembly: Syncfusion.SfDataForm.Android.dll
Syntax
public class DataFormSwitchEditor : DataFormEditor<Switch>, IDisposable
Constructors
DataFormSwitchEditor(SfDataForm)
Initializes a new instance of the DataFormSwitchEditor class.
Declaration
public DataFormSwitchEditor(SfDataForm dataForm)
Parameters
Type | Name | Description |
---|---|---|
SfDataForm | dataForm |
Methods
OnCommitValue(Switch)
Commits the value of the specific editor to corresponding property in the business object.
Declaration
protected override void OnCommitValue(Switch view)
Parameters
Type | Name | Description |
---|---|---|
Android.Widget.Switch | view | the editor. |
Overrides
Syncfusion.Android.DataForm.Editors.DataFormEditor<Android.Widget.Switch>.OnCommitValue(Android.Widget.Switch)
OnCreateEditorView()
Create and return a new instance of the Android.Widget.Switch.
Declaration
protected override Switch OnCreateEditorView()
Returns
Type | Description |
---|---|
Android.Widget.Switch | Returns the Android.Widget.Switch editor. |
Overrides
Syncfusion.Android.DataForm.Editors.DataFormEditor<Android.Widget.Switch>.OnCreateEditorView()
OnInitializeView(DataFormItem, Switch)
Initialize View with DataFormItem property info.
Declaration
protected override void OnInitializeView(DataFormItem dataFormItem, Switch view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The dataFormItem is property info of Editor |
Android.Widget.Switch | view | The UIview. |
Overrides
Syncfusion.Android.DataForm.Editors.DataFormEditor<Android.Widget.Switch>.OnInitializeView(Syncfusion.Android.DataForm.DataFormItem, Android.Widget.Switch)
OnUnWireEvents(Switch)
UnWires events for DataFormItemView's editor view.
Declaration
protected override void OnUnWireEvents(Switch view)
Parameters
Type | Name | Description |
---|---|---|
Android.Widget.Switch | view | The view to unwire the events |
Overrides
Syncfusion.Android.DataForm.Editors.DataFormEditor<Android.Widget.Switch>.OnUnWireEvents(Android.Widget.Switch)
OnUpdateValue(DataFormItem, Switch)
Declaration
protected override void OnUpdateValue(DataFormItem dataFormItem, Switch view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | |
Android.Widget.Switch | view |
Overrides
Syncfusion.Android.DataForm.Editors.DataFormEditor<Android.Widget.Switch>.OnUpdateValue(Syncfusion.Android.DataForm.DataFormItem, Android.Widget.Switch)
OnValidateValue(Switch)
Validates the value of the specific editor to corresponding property in the business object.
Declaration
protected override bool OnValidateValue(Switch view)
Parameters
Type | Name | Description |
---|---|---|
Android.Widget.Switch | view | the editor. |
Returns
Type |
---|
System.Boolean |
Overrides
Syncfusion.Android.DataForm.Editors.DataFormEditor<Android.Widget.Switch>.OnValidateValue(Android.Widget.Switch)
OnWireEvents(Switch)
Wires events for DataFormItemView's editor view.
Declaration
protected override void OnWireEvents(Switch view)
Parameters
Type | Name | Description |
---|---|---|
Android.Widget.Switch | view | The view to wire the events. |
Overrides
Syncfusion.Android.DataForm.Editors.DataFormEditor<Android.Widget.Switch>.OnWireEvents(Android.Widget.Switch)
Implements
System.IDisposable