TKDataFormDelegate Protocol Reference
Conforms to | NSObject |
Declared in | TKDataForm.h |
Overview
The methods declared by the TKDataFormDelegate protocol allow the adopting delegate to respond to messages from the TKDataForm class and thus respond to different operations.
Tasks
-
– dataForm:didSelectEditor:forProperty:
-
– dataForm:didDeselectEditor:forProperty:
-
– dataForm:didEditProperty:
-
– dataForm:didValidateProperty:editor:
-
– dataForm:validateProperty:editor:
-
– dataForm:didFinishValidation:
-
– dataForm:didFinishCommit:
-
– dataForm:setupEditor:forProperty:
-
– dataForm:createEditorForProperty:
-
– dataForm:updateEditor:forProperty:
-
– dataForm:updateGroupView:forGroupAtIndex:
-
– dataForm:willCommitProperty:
-
– dataForm:didCommitProperty:
-
– dataForm:viewForHeaderInGroup:
-
– dataForm:heightForEditorInGroup:atIndex:
-
– dataForm:heightForHeaderInGroup:
-
– inputAccessoryViewForDataForm:
-
– dataForm:initViewController:forEditor:
-
– dataForm:didCollapseGroupView:
-
– dataForm:didExpandGroupView:
Instance Methods
dataForm:createEditorForProperty:
Called before an editor is created. This method lets you provide custom implementation of the TKDataFormEditor object.
- (TKDataFormEditor *__nullable)dataForm:(TKDataForm *__nonnull)dataForm createEditorForProperty:(TKEntityProperty *__nonnull)property
Declared In
TKDataForm.h
dataForm:didCollapseGroupView:
Called when a group view is being collapsed.
- (void)dataForm:(TKDataForm *__nonnull)dataForm didCollapseGroupView:(TKEntityPropertyGroupView *__nonnull)groupView
Declared In
TKDataForm.h
dataForm:didCommitProperty:
Called after a property value is committed to the business object.
- (void)dataForm:(TKDataForm *__nonnull)dataForm didCommitProperty:(TKEntityProperty *__nonnull)property
Parameters
- dataForm
The requesting TKDataForm object.
- property
The property that has been committed.
Declared In
TKDataForm.h
dataForm:didDeselectEditor:forProperty:
Called when a row with the corresponding property is deselected.
- (void)dataForm:(TKDataForm *__nonnull)dataForm didDeselectEditor:(TKDataFormEditor *__nonnull)editor forProperty:(TKEntityProperty *__nonnull)property
Parameters
- dataForm
The requesting TKDataForm object.
- editor
The property editor.
- property
The property that has been selected.
Declared In
TKDataForm.h
dataForm:didEditProperty:
Called after a property is edited.
- (void)dataForm:(TKDataForm *__nonnull)dataForm didEditProperty:(TKEntityProperty *__nonnull)property
Declared In
TKDataForm.h
dataForm:didExpandGroupView:
Called when a group view is being expanded.
- (void)dataForm:(TKDataForm *__nonnull)dataForm didExpandGroupView:(TKEntityPropertyGroupView *__nonnull)groupView
Declared In
TKDataForm.h
dataForm:didFinishCommit:
Called when the dataform has finished commit of all properties.
- (BOOL)dataForm:(TKDataForm *__nonnull)dataForm didFinishCommit:(BOOL)result
Declared In
TKDataForm.h
dataForm:didFinishValidation:
Called when the dataform has finished validation of all properties.
- (BOOL)dataForm:(TKDataForm *__nonnull)dataForm didFinishValidation:(BOOL)result
Declared In
TKDataForm.h
dataForm:didSelectEditor:forProperty:
Called when a row with the corresponding property is selected.
- (void)dataForm:(TKDataForm *__nonnull)dataForm didSelectEditor:(TKDataFormEditor *__nonnull)editor forProperty:(TKEntityProperty *__nonnull)property
Parameters
- dataForm
The requesting TKDataForm object.
- editor
The property editor.
- property
The property that has been selected.
Declared In
TKDataForm.h
dataForm:didValidateProperty:editor:
Called after a property is validated.
- (void)dataForm:(TKDataForm *__nonnull)dataForm didValidateProperty:(TKEntityProperty *__nonnull)property editor:(TKDataFormEditor *__nonnull)editor
Parameters
- dataForm
The requesting TKDataForm object.
- property
The validated property.
- editor
The property edior.
Declared In
TKDataForm.h
dataForm:heightForEditorInGroup:atIndex:
The height for the editor at specified indices.
- (CGFloat)dataForm:(TKDataForm *__nonnull)dataForm heightForEditorInGroup:(NSUInteger)groupIndex atIndex:(NSUInteger)editorIndex
Parameters
- dataForm
The requesting TKDataForm object.
- groupIndex
The index of the editor’s group.
- editorIndex
The index of the editor in the group.
Return Value
The height of the editor.
Declared In
TKDataForm.h
dataForm:heightForHeaderInGroup:
The height of the group header.
- (CGFloat)dataForm:(TKDataForm *__nonnull)dataForm heightForHeaderInGroup:(NSUInteger)groupIndex
Return Value
The height of the group’s header.
Declared In
TKDataForm.h
dataForm:initViewController:forEditor:
Initializes a view controller specific for a given view controller editor.
- (void)dataForm:(TKDataForm *__nonnull)dataForm initViewController:(UIViewController *__nonnull)viewController forEditor:(TKDataFormViewControllerEditor *__nonnull)editor
Parameters
- dataForm
The requesting TKDataForm object.
- viewController
The view controller to be initialized
- editor
The view controller editor which presents the view controller.
Declared In
TKDataForm.h
dataForm:setupEditor:forProperty:
Called once when the data form creates its ediors. This method lets you to set properties that are not going to be changed.
- (void)dataForm:(TKDataForm *__nonnull)dataForm setupEditor:(TKDataFormEditor *__nonnull)editor forProperty:(TKEntityProperty *__nonnull)property
Parameters
- dataForm
The data form that requests the setup.
- editor
The editor that will be set up.
- property
The editor’s property.
Declared In
TKDataForm.h
dataForm:updateEditor:forProperty:
Called before an editor is desplayed to the screen or after validation. This method lets you change the visual styles and setting of TKDataFormEditor object.
- (void)dataForm:(TKDataForm *__nonnull)dataForm updateEditor:(TKDataFormEditor *__nonnull)editor forProperty:(TKEntityProperty *__nonnull)property
Parameters
- dataForm
The requesting TKDataForm object.
- editor
The editor that will be updated.
- property
The editor’s property.
Declared In
TKDataForm.h
dataForm:updateGroupView:forGroupAtIndex:
This method lets you change the visual styles and setting of TKEntityPropertyGroupView object.
- (void)dataForm:(TKDataForm *__nonnull)dataForm updateGroupView:(TKEntityPropertyGroupView *__nonnull)groupView forGroupAtIndex:(NSUInteger)groupIndex
Parameters
- dataForm
dataForm The requesting TKDataForm object.
- groupView
The TKEntityPropertyGroupView object that will be updated.
- groupIndex
The index of the group view.
Declared In
TKDataForm.h
dataForm:validateProperty:editor:
Called when a property has to be validated.
- (BOOL)dataForm:(TKDataForm *__nonnull)dataForm validateProperty:(TKEntityProperty *__nonnull)property editor:(TKDataFormEditor *__nonnull)editor
Parameters
- dataForm
The requesting TKDataForm object.
- property
The property that has to be validated.
- editor
The property’s editor.
Declared In
TKDataForm.h
dataForm:viewForHeaderInGroup:
The header for the corresponding group.
- (TKEntityPropertyGroupTitleView *__nonnull)dataForm:(TKDataForm *__nonnull)dataForm viewForHeaderInGroup:(NSUInteger)groupIndex
Return Value
The header for the group.
Declared In
TKDataForm.h
dataForm:willCommitProperty:
Called just before a property value will be commited to the business object.
- (BOOL)dataForm:(TKDataForm *__nonnull)dataForm willCommitProperty:(TKEntityProperty *__nonnull)property
Parameters
- dataForm
The requesting TKDataForm object.
- property
The property which value is about to be committed.
Return Value
Return true to allow the commit operation.
Declared In
TKDataForm.h
inputAccessoryViewForDataForm:
Return input accessory view for text field editors.
- (TKDataFormAccessoryView *__nullable)inputAccessoryViewForDataForm:(TKDataForm *__nonnull)dataForm
Parameters
- dataForm
The data form requesting accessory view.
Return Value
Input accessory view.
Declared In
TKDataForm.h