Class DataFormEditor<EditorView>
Represent a class to handle the UIView specific initialization, wiring and un wiring.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Android.DataForm.Editors
Assembly: Syncfusion.SfDataForm.Android.dll
Syntax
public abstract class DataFormEditor<EditorView> : DataFormEditorBase, IDisposable where EditorView : View
Type Parameters
Name |
---|
EditorView |
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()
Create and return it for DataFormItemViews sub view.
Declaration
protected virtual EditorView OnCreateEditorView()
Returns
Type | Description |
---|---|
EditorView | Returns corresponding EditorView. |
OnInitializeView(DataFormItem, EditorView)
Initialize View with DataFormItemView.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 |
OnMeasure(EditorView, Int32, Int32)
Measure with specified width and height.
Declaration
protected virtual void OnMeasure(EditorView view, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
EditorView | view | The Editor view. |
System.Int32 | width | The width, relative to parent. |
System.Int32 | height | The height, 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)
Update value of ReadOnly property in editor's view.
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 |
---|
System.Boolean |
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. |