ETModelDescriptionRenderer

Authors

Quentin Mathe (qmathe@club-internet.fr)
Layout item builder class that generate a UI from a model description.

Copyright: (C) 2009 Quentin Mathe


Contents -

  1. Software documentation for the ETModelDescriptionRenderer class
  2. Software documentation for the ETPropertyCollectionController class

Software documentation for the ETModelDescriptionRenderer class

ETModelDescriptionRenderer : NSObject

Declared in:
ETModelDescriptionRenderer.h
Description forthcoming.
Method summary

renderer 

+ (id) renderer;

@taskunit Initialization


defaultFormLayout 

- (ETFormLayout*) defaultFormLayout;

@taskunit Customizing Generated UI


defaultItemSize 

- (NSSize) defaultItemSize;
Description forthcoming.

entityItemFrame 

- (NSRect) entityItemFrame;
Description forthcoming.

entityLayout 

- (ETLayout*) entityLayout;
Description forthcoming.

formatterForType: 

- (id) formatterForType: (ETEntityDescription*)aType;

@taskunit Customizing Value Editing


groupingKeyPath 

- (NSString*) groupingKeyPath;
Description forthcoming.

itemSize 

- (NSSize) itemSize;
Description forthcoming.

renderObject: 

- (id) renderObject: (id)anObject;

@taskunit Generating Form UI


renderObject: displayName: propertyDescriptions: 

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

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: .


repository 

- (ETModelDescriptionRepository*) repository;

@taskunit Model Description Repository


setEntityItemFrame: 

- (void) setEntityItemFrame: (NSRect)aRect;
Description forthcoming.

setEntityLayout: 

- (void) setEntityLayout: (ETLayout*)aLayout;
Description forthcoming.

setFormatter: forType: 

- (void) setFormatter: (NSFormatter*)aFormatter forType: (ETEntityDescription*)aType;
Description forthcoming.

setGroupingKeyPath: 

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

setItemSize: 

- (void) setItemSize: (NSSize)aSize;
Description forthcoming.

setRenderedPropertyNames: 

- (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 .


setTemplateIdentifier: forRoleClass: 

- (void) setTemplateIdentifier: (NSString*)anIdentifier forRoleClass: (Class)aClass;
Description forthcoming.

setTemplateItem: forIdentifier: 

- (void) setTemplateItem: (ETLayoutItem*)anItem forIdentifier: (NSString*)anIdentifier;

@taskunit Providing UI Templates


setUsesContentSizeLayout: 

- (void) setUsesContentSizeLayout: (BOOL)isContentSizeLayout;
Description forthcoming.

setValueTransformer: forType: 

- (void) setValueTransformer: (ETItemValueTransformer*)aTransformer forType: (ETEntityDescription*)aType;
Description forthcoming.

templateIdentifierForRoleClass: 

- (NSString*) templateIdentifierForRoleClass: (Class)aClass;
Description forthcoming.

templateItemForIdentifier: 

- (id) templateItemForIdentifier: (NSString*)anIdentifier;
Description forthcoming.

templateItems 

- (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];

usesContentSizeLayout 

- (BOOL) usesContentSizeLayout;
Description forthcoming.

valueTransformerForType: 

- (ETItemValueTransformer*) valueTransformerForType: (ETEntityDescription*)aType;
Description forthcoming.

Software documentation for the ETPropertyCollectionController class

ETPropertyCollectionController : ETController

Declared in:
ETModelDescriptionRenderer.h
Description forthcoming.
Method summary

edit: 

- (IBAction) edit: (id)sender;
Description forthcoming.