public class DRAttribute extends Object
Modifier and Type | Field and Description |
---|---|
protected DRAttributeGroup |
_attributeGroup |
protected 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 |
Constructor and Description |
---|
DRAttribute() |
DRAttribute(DRAttributeGroup attributeGroup)
Constructor with DRAttributeGroup.
|
DRAttribute(String keyPath,
String format,
String label,
boolean shouldTotal,
NSDictionary userInfo)
Constructor with parameters.
|
protected String _keyPath
protected String _format
protected boolean _shouldTotal
protected boolean _shouldSort
protected boolean _shouldRestrictToFirstRow
protected boolean _isGroup
protected String _label
protected NSDictionary _userInfo
protected DRAttributeGroup _attributeGroup
protected boolean _isPlaceHolderTotal
protected boolean _isTotal
protected boolean _isComputed
protected NSArray _emptyArray
public DRAttribute(String keyPath, String format, String label, boolean shouldTotal, NSDictionary userInfo)
keyPath
- format
- label
- shouldTotal
- userInfo
- public DRAttribute(DRAttributeGroup attributeGroup)
attributeGroup
- public DRAttribute()
public static DRAttribute withAttributeGroup(DRAttributeGroup attributeGroup)
attributeGroup
- public static DRAttribute withKeyPathFormatLabelTotalUserInfo(String keyPath, String format, String label, boolean shouldTotal, NSDictionary userInfo)
keyPath
- format
- label
- shouldTotal
- userInfo
- public void resetDefaults()
public String keyPath()
public void setKeyPath(String value)
public String format()
public void setFormat(String value)
public boolean showTotal()
public boolean shouldTotal()
public void setShouldTotal(boolean value)
public boolean shouldSort()
public void setShouldSort(boolean value)
public boolean shouldRestrictToFirstRow()
public void setShouldRestrictToFirstRow(boolean value)
public String label()
public void setLabel(String value)
public NSDictionary userInfo()
public void setUserInfo(NSDictionary value)
public boolean isGroup()
public NSMutableArray attributes()
public NSArray flatAttributes()
public NSArray flatAttributesTotal()
protected NSArray flatAttributesWithDepthDictionary(int attributeListDepth, NSMutableDictionary flatAttributeDepthDict)
public void setAttributeGroup(DRAttributeGroup attributeGroup)
public DRAttributeGroup attributeGroup()
public boolean isPlaceHolderTotal()
public void setIsPlaceHolderTotal(boolean value)
public boolean isComputed()
public double computeFromRawRecords(NSArray rawRecords)
Copyright © 2002 – 2020 Project Wonder.