DRAttribute Class Reference

Inherited by DRAttributeGroup.

Collaboration diagram for DRAttribute:

Collaboration graph
[legend]

List of all members.

Public Member Functions

DRAttributeGroup attributeGroup ()
NSMutableArray attributes ()
double computeFromRawRecords (NSArray rawRecords)
 DRAttribute ()
 DRAttribute (DRAttributeGroup attributeGroup)
 DRAttribute (String keyPath, String format, String label, boolean shouldTotal, NSDictionary userInfo)
NSArray flatAttributes ()
NSArray flatAttributesTotal ()
String format ()
boolean isComputed ()
boolean isGroup ()
boolean isPlaceHolderTotal ()
String keyPath ()
String label ()
void resetDefaults ()
void setAttributeGroup (DRAttributeGroup attributeGroup)
void setFormat (String value)
void setIsPlaceHolderTotal (boolean value)
void setKeyPath (String value)
void setLabel (String value)
void setShouldRestrictToFirstRow (boolean value)
void setShouldSort (boolean value)
void setShouldTotal (boolean value)
void setUserInfo (NSDictionary value)
boolean shouldRestrictToFirstRow ()
boolean shouldSort ()
boolean shouldTotal ()
boolean showTotal ()
String toString ()
NSDictionary userInfo ()

Static Public Member Functions

static DRAttribute withAttributeGroup (DRAttributeGroup attributeGroup)
static DRAttribute withKeyPathFormatLabelTotalUserInfo (String keyPath, String format, String label, boolean shouldTotal, NSDictionary userInfo)

Protected Member Functions

NSArray flatAttributesWithDepthDictionary (int attributeListDepth, NSMutableDictionary flatAttributeDepthDict)

Protected Attributes

DRAttributeGroup _attributeGroup
NSArray _emptyArray = NSArray.EmptyArray
String _format
boolean _isComputed
boolean _isGroup
boolean _isPlaceHolderTotal
boolean _isTotal
String _keyPath
String _label
boolean _shouldRestrictToFirstRow
boolean _shouldSort
boolean _shouldTotal
NSDictionary _userInfo

Private Attributes

NSMutableArray __attributes = new NSMutableArray()


Detailed Description

DRAttributes are to display what EOAttributes are to the back-end. Each DRAttribute can be defined with: 'keyPath' (what you want to ask the dictionary or EO) 'label' (what you want to call the attribute for display) a boolean for 'shouldTotal' a boolean for 'shouldSort' 'format' for formatting dates a toggle turning a attribute into a group.

Each group can have 0 or more DRAttributes within it.

Author:
david neumann

Constructor & Destructor Documentation

DRAttribute ( String  keyPath,
String  format,
String  label,
boolean  shouldTotal,
NSDictionary  userInfo 
)

Constructor with parameters.

Parameters:
keyPath 
format 
label 
shouldTotal 
userInfo 

DRAttribute ( DRAttributeGroup  attributeGroup  ) 

Constructor with DRAttributeGroup.

Parameters:
attributeGroup 

DRAttribute (  ) 


Member Function Documentation

DRAttributeGroup attributeGroup (  ) 

NSMutableArray attributes (  ) 

Reimplemented in DRAttributeGroup.

double computeFromRawRecords ( NSArray  rawRecords  ) 

NSArray flatAttributes (  ) 

Reimplemented in DRAttributeGroup.

NSArray flatAttributesTotal (  ) 

Reimplemented in DRAttributeGroup.

NSArray flatAttributesWithDepthDictionary ( int  attributeListDepth,
NSMutableDictionary  flatAttributeDepthDict 
) [protected]

Reimplemented in DRAttributeGroup.

String format (  ) 

boolean isComputed (  ) 

boolean isGroup (  ) 

Reimplemented in DRAttributeGroup.

boolean isPlaceHolderTotal (  ) 

String keyPath (  ) 

String label (  ) 

void resetDefaults (  ) 

Reimplemented in DRAttributeGroup.

void setAttributeGroup ( DRAttributeGroup  attributeGroup  ) 

void setFormat ( String  value  ) 

void setIsPlaceHolderTotal ( boolean  value  ) 

void setKeyPath ( String  value  ) 

void setLabel ( String  value  ) 

void setShouldRestrictToFirstRow ( boolean  value  ) 

void setShouldSort ( boolean  value  ) 

void setShouldTotal ( boolean  value  ) 

void setUserInfo ( NSDictionary  value  ) 

boolean shouldRestrictToFirstRow (  ) 

boolean shouldSort (  ) 

boolean shouldTotal (  ) 

boolean showTotal (  ) 

Reimplemented in DRAttributeGroup.

String toString (  ) 

Reimplemented in DRAttributeGroup.

NSDictionary userInfo (  ) 

static DRAttribute withAttributeGroup ( DRAttributeGroup  attributeGroup  )  [static]

Creates a new DRAttributes from a DRAttributeGroup.

Parameters:
attributeGroup 

static DRAttribute withKeyPathFormatLabelTotalUserInfo ( String  keyPath,
String  format,
String  label,
boolean  shouldTotal,
NSDictionary  userInfo 
) [static]

Creates a new DRAttribute from the supplied parmeters.

Parameters:
keyPath 
format 
label 
shouldTotal 
userInfo 


Member Data Documentation

NSArray _emptyArray = NSArray.EmptyArray [protected]

String _format [protected]

boolean _isComputed [protected]

boolean _isGroup [protected]

boolean _isPlaceHolderTotal [protected]

boolean _isTotal [protected]

String _keyPath [protected]

String _label [protected]

boolean _shouldRestrictToFirstRow [protected]

boolean _shouldSort [protected]

boolean _shouldTotal [protected]

NSDictionary _userInfo [protected]


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

Generated on Sat May 26 06:43:18 2012 for Project Wonder by  doxygen 1.5.8