API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPPredicateEditor Class Reference

CPPredicateEditor is a subclass of CPRuleEditor that is specialized for editing CPPredicate objects. More...

#import <CPPredicateEditor.h>

+ Inheritance diagram for CPPredicateEditor:

Instance Methods

(CPArray) - rowTemplates
 Returns the row templates for the receiver. More...
 
(void) - setRowTemplates:
 Sets the row templates for the receiver. More...
 

Additional Inherited Members

- Class Methods inherited from CPControl
(void) + initialize
 
(CPDictionary+ themeAttributes
 

Detailed Description

CPPredicateEditor is a subclass of CPRuleEditor that is specialized for editing CPPredicate objects.

CPPredicateEditor provides a CPPredicate property—objectValue (inherited from CPControl)—that you can get and set directly, and that you can bind using bindings (you typically configure a predicate editor in Interface Builder). CPPredicateEditor depends on another class, CPPredicateEditorRowTemplate, that describes the available predicates and how to display them.

Unlike CPRuleEditor, CPPredicateEditor does not depend on its delegate to populate its rows (and does not call the populating delegate methods). Instead, its rows are populated from its objectValue property (an instance of CPPredicate). CPPredicateEditor relies on instances CPPredicateEditorRowTemplate, which are responsible for mapping back and forth between the displayed view values and various predicates.

CPPredicateEditor exposes one property, rowTemplates, which is an array of CPPredicateEditorRowTemplate objects.

Definition at line 2 of file CPPredicateEditor.h.

Method Documentation

- (CPArray) rowTemplates
implementation

Returns the row templates for the receiver.

Returns
The row templates for the receiver. Until otherwise set, this contains a single compound CPPredicateEditorRowTemplate object.
See Also
- setRowTemplates:

Definition at line 53 of file CPPredicateEditor.j.

- (void) setRowTemplates: (id)  rowTemplates
implementation

Sets the row templates for the receiver.

Parameters
rowTemplatesAn array of CPPredicateEditorRowTemplate objects.
See Also
- rowTemplates

Definition at line 63 of file CPPredicateEditor.j.


The documentation for this class was generated from the following files: