Class DataFormEditor<EditorView>
Represent a class to handle the UIView specific initialization, wiring and un wiring.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XForms.DataForm.Editors
Assembly: Syncfusion.SfDataForm.XForms.dll
Syntax
public abstract class DataFormEditor<EditorView> : DataFormEditorBase, IThemeElement, IDisposable where EditorView : View
Type Parameters
Name | Description |
---|---|
EditorView | The editor view. |
Constructors
DataFormEditor(SfDataForm)
Initializes a new instance of the DataFormEditor<EditorView> class.
Declaration
public DataFormEditor(SfDataForm dataForm)
Parameters
Type | Name | Description |
---|---|---|
SfDataForm | dataForm | The DataForm. |
Methods
OnCommitValue(EditorView)
Commits the value of the specific editor to corresponding property in the business object.
Declaration
protected virtual void OnCommitValue(EditorView view)
Parameters
Type | Name | Description |
---|---|---|
EditorView | view | the editor. |
OnCreateEditorView(DataFormItem)
Create and return it for DataFormItemView’s sub view.
Declaration
protected virtual EditorView OnCreateEditorView(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The corresponding DataFormItem. |
Returns
Type | Description |
---|---|
EditorView | Returns corresponding EditorView. |
OnInitializeView(DataFormItem, EditorView)
Initialize View with DataFormItem property info.
Declaration
protected virtual void OnInitializeView(DataFormItem dataFormItem, EditorView view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The dataFormItem is property info of Editor. |
EditorView | view | The UIview. |
OnLayout(EditorView, Int32, Int32, Int32, Int32)
Called from layout when this view should assign a size and position to each of its children.
Declaration
protected virtual void OnLayout(EditorView view, int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
EditorView | view | This is a new size or position for this view. |
System.Int32 | left | Left position, relative to parent. |
System.Int32 | top | Top position, relative to parent. |
System.Int32 | right | Right position, relative to parent. |
System.Int32 | bottom | Bottom position, relative to parent. |
OnUnWireEvents(EditorView)
UnWires events for DataFormItemView's editor view.
Declaration
protected virtual void OnUnWireEvents(EditorView view)
Parameters
Type | Name | Description |
---|---|---|
EditorView | view | The view to unwire the events. |
OnUpdateReadOnly(DataFormItem, EditorView)
Updates the readonly settings.
Declaration
protected virtual void OnUpdateReadOnly(DataFormItem dataFormItem, EditorView view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The corresponding DataFormItem. |
EditorView | view | The editor. |
OnUpdateValue(DataFormItem, EditorView)
Updates the value of the specific editor to corresponding property in the business object.
Declaration
protected virtual void OnUpdateValue(DataFormItem dataFormItem, EditorView view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | the corresponding dataFormItem. |
EditorView | view | the editor. |
OnValidateValue(EditorView)
Validates the value of the specific editor to corresponding property in the business object.
Declaration
protected virtual bool OnValidateValue(EditorView view)
Parameters
Type | Name | Description |
---|---|---|
EditorView | view | the editor. |
Returns
Type | Description |
---|---|
System.Boolean | Unconditionally returns |
OnWireEvents(EditorView)
Wires events for DataFormItemView's editor view.
Declaration
protected virtual void OnWireEvents(EditorView view)
Parameters
Type | Name | Description |
---|---|---|
EditorView | view | The view to wire the events. |