SMPOpenUICollectionDisplayAdapter protocol

Protocol for a field extension representing a collection.

Syntax

@protocol SMPOpenUICollectionDisplayAdapter

Base protocols

Members

All members of SMPOpenUICollectionDisplayAdapter, including inherited members.

Methods
Method Description
- (void) allObjectsChanged: (id< SMPOpenUICollectionDisplayModel >) model Called to inform the adapter that the collection has changed enough that it needs to be completely refreshed.
- (id< SMPOpenUICollectionDisplayAdapter >) initWithCollectionDisplayModel: (id< SMPOpenUICollectionDisplayModel >) model Called to initialize the extension with its model.
- (void) model: (id< SMPOpenUICollectionDisplayModel >) model didSelectObjectAtIndex: (NSIndexPath *) indexPath Called to inform the adapter that the selection index has changed.
- (void) model: (id< SMPOpenUICollectionDisplayModel >) model objectAddedAtIndex: (NSIndexPath *) indexPath Called to inform the adapter that an object has been added to the collection at the specified position.
- (void) model: (id< SMPOpenUICollectionDisplayModel >) model objectChangedAtIndex: (NSIndexPath *) indexPath Called to inform the adapter that the object at the specified position has changed enough that it needs to be completely refreshed.
- (void) model: (id< SMPOpenUICollectionDisplayModel >) model objectDeletedAtIndex: (NSIndexPath *) indexPath Called to inform the adapter that the object at the specified position has been deleted and needs to be removed.
Inherited members from SMPOpenUIFieldAdapter
Member Description
- (BOOL) agentryShouldDisplayLabel Called to ask the adapter if Agentry should handle displaying the label for the field or leave it to the extension.
- (BOOL) agentryShouldDisplayValidationFailure Called to ask the adapter if Agentry should handle displaying validation failure text or leave it to the extension.
- (SMPOpenUIAutosizeBehavior) autosizeBehavior Called to ask the adapter what its desired autosize behavior is.
- (void) model: (id< SMPOpenUIFieldModel >) model didSetEnabled: (BOOL) enabled Called to inform the adapter that the host widget has been enabled or disabled.
- (void) model: (id< SMPOpenUIFieldModel >) model didSetHyperlinkEnabled: (BOOL) enabled Called to inform the adapter that the enable state of the hyperlink has changed.
- (void) model: (id< SMPOpenUIFieldModel >) model didSetValid: (BOOL) valid withValidationFailureText: (NSString *) text Called to inform the adapter that the field's valid state has changed.
- (void) model: (id< SMPOpenUIFieldModel >) model didSetVisible: (BOOL) visible Called to inform the adapter that the host widget has been shown or hidden.
- (void) model: (id< SMPOpenUIFieldModel >) model didUpdateLabel: (NSString *) label Called to inform the adapter that the text of the label has changed.
- (NSString *) model: (id< SMPOpenUIFieldModel >) model wantsExtensionString: (NSString *) stringName Called by the Agentry to get the value for the specified string.
- (NSUInteger) model: (id< SMPOpenUIFieldModel >) model wantsViewHeightForWidth: (NSUInteger) width Called to ask the adapter the height needed for its view for a given width for layout calculations.
- (UIView *) viewForFrame: (CGRect) frame Returns the UIView that will be added as a subview to the host's UIView This will be called one time after initWithXxxModel: has been called.