Class DataFormLayoutManager
Represent a class to creates DataFormItemView and DataFormGroupItemView its sub views for SfDataForm.
Inheritance
Implements
Namespace: Syncfusion.Android.DataForm
Assembly: Syncfusion.SfDataForm.Android.dll
Syntax
public class DataFormLayoutManager : Object, IDisposable
Constructors
DataFormLayoutManager(SfDataForm)
Initializes a new instance of the DataFormLayoutManager class.
Declaration
public DataFormLayoutManager(SfDataForm dataForm)
Parameters
Type | Name | Description |
---|---|---|
SfDataForm | dataForm |
Properties
DataForm
Gets the instance of SfDataForm
Declaration
public SfDataForm DataForm { get; }
Property Value
Type |
---|
SfDataForm |
Methods
CreateDataFormGroupItemView(Int32, Int32)
Creates DataFormGroupItemView and populates its sub view for specified index.
Declaration
protected virtual View CreateDataFormGroupItemView(int rowIndex, int columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The rowIndex to create the DataFormGroupItemView. |
System.Int32 | columnIndex | The columnIndex to create the DataFormGroupItemView. |
Returns
Type | Description |
---|---|
Android.Views.View | Returns DataFormGroupItenView. |
CreateDataFormItemView(Int32, Int32)
Creates the DataFormItemView and populates its sub view for specified index.
Declaration
protected virtual DataFormItemView CreateDataFormItemView(int rowIndex, int columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The rowIndex to create the DataFormItemView |
System.Int32 | columnIndex | The columnIndex to create the DataFormItemView. |
Returns
Type | Description |
---|---|
DataFormItemView | Returns the created DataFormItemView |
Dispose()
Disposes all the resources used by the DataFormLayoutManager class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the DataFormLayoutManager class.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether the call is from Dispose method or from a finalizer. |
GenerateViewForGroupHeader(DataFormGroupItem)
Generates label to show the GroupHeader.
Declaration
protected virtual View GenerateViewForGroupHeader(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | The DataFormGroupItem to get the group information. |
Returns
Type | Description |
---|---|
Android.Views.View | Returns UILabel. |
GenerateViewForGroupIcon(DataFormGroupItem)
Generates image to show the expander icon in DataFormGroupItemView.
Declaration
protected virtual ImageView GenerateViewForGroupIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem |
Returns
Type | Description |
---|---|
Android.Widget.ImageView | Returns UIImageView. |
GenerateViewForLabel(DataFormItem)
Generates label to show the label text.
Declaration
protected virtual View GenerateViewForLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The DataFormItem to get label properties. |
Returns
Type | Description |
---|---|
Android.Views.View | Returns UILabel. |
GenerateViewForValidation(DataFormItem)
Generates validation view to show the validation message.
Declaration
protected virtual View GenerateViewForValidation(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem |
Returns
Type | Description |
---|---|
Android.Views.View | Returns UILabel. |
GetEditorWidth(DataFormItem, Int32)
Gets editor width based on available width.
Declaration
protected virtual int GetEditorWidth(DataFormItem dataFormItem, int availableWidth)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | |
System.Int32 | availableWidth |
Returns
Type | Description |
---|---|
System.Int32 | Returns editor width. |
GetGroupCollapseIcon(DataFormGroupItem)
Gets group collapse icon for group.
Declaration
protected virtual Bitmap GetGroupCollapseIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | The DataFormGroupItem. |
Returns
Type | Description |
---|---|
Android.Graphics.Bitmap | Returns CollapseIcon |
GetGroupExpanderIcon(DataFormGroupItem)
Gets group expander icon for group.
Declaration
protected virtual Bitmap GetGroupExpanderIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | The DataFormGroupItem. |
Returns
Type | Description |
---|---|
Android.Graphics.Bitmap | Returns ExpanderIcon |
GetLabelWidth(DataFormItem, Int32)
Gets label width based on available width.
Declaration
protected virtual int GetLabelWidth(DataFormItem dataFormItem, int availableWidth)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | |
System.Int32 | availableWidth |
Returns
Type | Description |
---|---|
System.Int32 | Returns label width. |
GetLeftPaddingForEditor(DataFormItem)
Gets left start offset for editor.
Declaration
protected virtual int GetLeftPaddingForEditor(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem |
Returns
Type | Description |
---|---|
System.Int32 | Returns left padding for editor. |
GetLeftPaddingForGroupHeader(DataFormGroupItem)
Gets left start offset for group header.
Declaration
protected virtual int GetLeftPaddingForGroupHeader(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem |
Returns
Type | Description |
---|---|
System.Int32 | Returns left padding for group header. |
GetLeftPaddingForGroupIcon(DataFormGroupItem)
Gets left start offset for group icon.
Declaration
protected virtual int GetLeftPaddingForGroupIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem |
Returns
Type | Description |
---|---|
System.Int32 | Returns Left padding for group icon. |
GetLeftPaddingForLabel(DataFormItem)
Gets left start offset for label.
Declaration
protected virtual int GetLeftPaddingForLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem |
Returns
Type | Description |
---|---|
System.Int32 | Returns left padding value for label. |
GetLeftPaddingForValidationLabel(DataFormItem)
Gets start offset for validation label.
Declaration
protected virtual int GetLeftPaddingForValidationLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem |
Returns
Type | Description |
---|---|
System.Int32 | Returns left padding for validation label. |
GetRightPaddingForEditor(DataFormItem)
Gets right offset for the editor.
Declaration
protected virtual int GetRightPaddingForEditor(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | Data form item. |
Returns
Type | Description |
---|---|
System.Int32 | Returns left padding for editor. |
Remarks
Applicable for both
GetRightPaddingForGroupHeader(DataFormGroupItem)
Gets right offset for group header.
Declaration
protected virtual int GetRightPaddingForGroupHeader(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | Data form group item. |
Returns
Type | Description |
---|---|
System.Int32 | Returns right padding for group header. |
Remarks
Applicable for both
GetRightPaddingForGroupIcon(DataFormGroupItem)
Gets right offset for group icon.
Declaration
protected virtual int GetRightPaddingForGroupIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | Data form group item. |
Returns
Type | Description |
---|---|
System.Int32 | Returns right padding for group icon. |
Remarks
Applicable for both
GetRightPaddingForLabel(DataFormItem)
Gets right start offset for label.
Declaration
protected virtual int GetRightPaddingForLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | Data form item. |
Returns
Type | Description |
---|---|
System.Int32 | Returns right padding value for label. |
Remarks
Applicable only for
GetRightPaddingForValidationLabel(DataFormItem)
Gets right offset for validation label.
Declaration
protected virtual int GetRightPaddingForValidationLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | Data form item. |
Returns
Type | Description |
---|---|
System.Int32 | Returns right padding for validation label. |
Remarks
Applicable only for
GetValidationLabelWidth(DataFormItem, Int32)
Gets validation label width based on available width.
Declaration
protected virtual int GetValidationLabelWidth(DataFormItem dataFormItem, int availableWidth)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | |
System.Int32 | availableWidth |
Returns
Type | Description |
---|---|
System.Int32 | Returns validation label width. |
MoveToNextFocusableEditor(DataFormItem)
Move focus to next focusable editor. IsReadOnly editor, Non-Focusable item will not get focus.
Declaration
public virtual void MoveToNextFocusableEditor(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The current editing DataFormItem that leave from editing. |
OnEditorCreated(DataFormItem, View)
Raises after editor has created.
Declaration
protected virtual void OnEditorCreated(DataFormItem dataFormItem, View editor)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The DataFormItem. |
Android.Views.View | editor | The Editor. |
UpdateViewForValidation(DataFormItem)
Updates the view for validation.
Declaration
protected virtual View UpdateViewForValidation(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | Data form item. |
Returns
Type | Description |
---|---|
Android.Views.View | The view for validation. |