Documentation

ETModelDescriptionRenderer

ETModelDescriptionRenderer : NSObject

Layout item builder class that generate a UI from a model description.

AuthorsQuentin Mathe
Declared inETModelDescriptionRenderer.h

Initialization

+ (id) renderer
Description forthcoming.

    Model Description Repository

    - (ETModelDescriptionRepository *) repository
    Description forthcoming.

      Providing UI Templates

      - (void) setTemplateItem: (ETLayoutItem *)anItem forIdentifier: (NSString *)anIdentifier
      Description forthcoming.
        - (id) templateItemForIdentifier: (NSString *)anIdentifier
        Description forthcoming.
          - (NSArray *) templateItems

          Returns all the template items.

          This can be used to customize properties on multiple template items at the same time. For example:
          [[renderer templateItems] mappedCollection] setWidth: 150];
          
            - (void) setTemplateIdentifier: (NSString *)anIdentifier forRoleClass: (Class)aClass
            Description forthcoming.
              - (NSString *) templateIdentifierForRoleClass: (Class)aClass
              Description forthcoming.
                - (NSSize) defaultItemSize
                Description forthcoming.
                  - (NSSize) itemSize
                  Description forthcoming.
                    - (void) setItemSize: (NSSize)aSize
                    Description forthcoming.

                      Customizing Generated UI

                      - (ETFormLayout *) defaultFormLayout
                      Description forthcoming.
                        - (void) setEntityLayout: (ETLayout *)aLayout
                        Description forthcoming.
                          - (ETLayout *) entityLayout
                          Description forthcoming.
                            - (void) setEntityItemFrame: (NSRect)aRect
                            Description forthcoming.
                              - (NSRect) entityItemFrame
                              Description forthcoming.
                                - (BOOL) usesContentSizeLayout
                                Description forthcoming.
                                  - (void) setUsesContentSizeLayout: (BOOL)isContentSizeLayout
                                  Description forthcoming.
                                    - (void) setRenderedPropertyNames: (NSArray *)propertyNames

                                    Returns the names of the property descriptions to render for an object passed to -renderObject: and related methods. See also -renderedPropertyNames .

                                      - (NSArray *) renderedPropertyNames

                                      Returns the names of the property descriptions to render for an object passed to -renderObject: and related methods.

                                      If an empty an array is returned, no property descriptions is rendered. If nil is returned, all the property descriptions bound the entity description of the object are rendered By default, returns nil. See also -setRenderedPropertyNames: .

                                        - (void) setGroupingKeyPath: (NSString *)aKeyPath
                                        Description forthcoming.
                                          - (NSString *) groupingKeyPath
                                          Description forthcoming.

                                            Customizing Value Editing

                                            - (id) formatterForType: (ETEntityDescription *)aType
                                            Description forthcoming.
                                              - (void) setFormatter: (NSFormatter *)aFormatter forType: (ETEntityDescription *)aType
                                              Description forthcoming.
                                                - (ETItemValueTransformer *) valueTransformerForType: (ETEntityDescription *)aType
                                                Description forthcoming.
                                                  - (void) setValueTransformer: (ETItemValueTransformer *)aTransformer forType: (ETEntityDescription *)aType
                                                  Description forthcoming.

                                                    Generating Form UI

                                                    - (id) renderObject: (id)anObject
                                                    Description forthcoming.
                                                      - (id) renderObject: (id)anObject displayName: (NSString *)aName propertyDescriptions: (NSArray *)propertyDescs
                                                      Description forthcoming.