DRAttributes are to display what EOAttributes are to the back-end.
Each DRAttribute can be defined with:
a toggle turning a attribute into a group.
Each group can have 0 or more DRAttributes within it.
- Author:
- david neumann
_keyPath
protected String _keyPath
_format
protected String _format
_shouldTotal
protected boolean _shouldTotal
_shouldSort
protected boolean _shouldSort
_shouldRestrictToFirstRow
protected boolean _shouldRestrictToFirstRow
_isGroup
protected boolean _isGroup
_label
protected String _label
_userInfo
protected NSDictionary _userInfo
_attributeGroup
protected DRAttributeGroup _attributeGroup
_isPlaceHolderTotal
protected boolean _isPlaceHolderTotal
_isTotal
protected boolean _isTotal
_isComputed
protected boolean _isComputed
_emptyArray
protected NSArray _emptyArray
DRAttribute
public DRAttribute(String keyPath,
String format,
String label,
boolean shouldTotal,
NSDictionary userInfo)
- Constructor with parameters.
- Parameters:
keyPath - format - label - shouldTotal - userInfo -
DRAttribute
public DRAttribute(DRAttributeGroup attributeGroup)
- Constructor with DRAttributeGroup.
- Parameters:
attributeGroup -
DRAttribute
public DRAttribute()
withAttributeGroup
public static DRAttribute withAttributeGroup(DRAttributeGroup attributeGroup)
- Creates a new DRAttributes from a DRAttributeGroup.
- Parameters:
attributeGroup -
withKeyPathFormatLabelTotalUserInfo
public static DRAttribute withKeyPathFormatLabelTotalUserInfo(String keyPath,
String format,
String label,
boolean shouldTotal,
NSDictionary userInfo)
- Creates a new DRAttribute from the supplied parmeters.
- Parameters:
keyPath - format - label - shouldTotal - userInfo -
resetDefaults
public void resetDefaults()
keyPath
public String keyPath()
setKeyPath
public void setKeyPath(String value)
format
public String format()
setFormat
public void setFormat(String value)
showTotal
public boolean showTotal()
shouldTotal
public boolean shouldTotal()
setShouldTotal
public void setShouldTotal(boolean value)
shouldSort
public boolean shouldSort()
setShouldSort
public void setShouldSort(boolean value)
shouldRestrictToFirstRow
public boolean shouldRestrictToFirstRow()
setShouldRestrictToFirstRow
public void setShouldRestrictToFirstRow(boolean value)
label
public String label()
setLabel
public void setLabel(String value)
userInfo
public NSDictionary userInfo()
setUserInfo
public void setUserInfo(NSDictionary value)
isGroup
public boolean isGroup()
attributes
public NSMutableArray attributes()
flatAttributes
public NSArray flatAttributes()
flatAttributesTotal
public NSArray flatAttributesTotal()
flatAttributesWithDepthDictionary
protected NSArray flatAttributesWithDepthDictionary(int attributeListDepth,
NSMutableDictionary flatAttributeDepthDict)
setAttributeGroup
public void setAttributeGroup(DRAttributeGroup attributeGroup)
attributeGroup
public DRAttributeGroup attributeGroup()
isPlaceHolderTotal
public boolean isPlaceHolderTotal()
setIsPlaceHolderTotal
public void setIsPlaceHolderTotal(boolean value)
isComputed
public boolean isComputed()
toString
public String toString()
- Overrides:
toString in class Object
computeFromRawRecords
public double computeFromRawRecords(NSArray rawRecords)
Copyright © 2002 – 2007 Project Wonder.