public class MainReportValueDecimalField extends MainReportValue
Constructor and Description |
---|
MainReportValueDecimalField(DecimalField field,
ValueConsolidator valueconsolidator)
creates a main report value for a decimal field without a total column
|
MainReportValueDecimalField(DecimalField field,
ValueConsolidator valueconsolidator,
boolean hastotal)
creates a main report value for a decimal field
|
Modifier and Type | Method and Description |
---|---|
Field |
copyFieldForTotal(java.lang.String newname,
java.lang.String newlabel) |
DataObjectDefinition |
getParentObject() |
protected java.lang.String |
printExtractor(java.lang.String objectname)
generates the extractor
|
getTotalIndex, hasTotal, setTotalIndex
public MainReportValueDecimalField(DecimalField field, ValueConsolidator valueconsolidator)
field
- decimal fieldvalueconsolidator
- value consolidator. This explains how values should
be consolidated (by sum, average...)public MainReportValueDecimalField(DecimalField field, ValueConsolidator valueconsolidator, boolean hastotal)
field
- decimal fieldvalueconsolidator
- value consolidator. This explains how values should
be consolidated (by sum, average...)hastotal
- true if a total column should be createdpublic DataObjectDefinition getParentObject()
getParentObject
in class MainReportValue
protected java.lang.String printExtractor(java.lang.String objectname)
MainReportValue
printExtractor
in class MainReportValue
objectname
- name of the objectpublic Field copyFieldForTotal(java.lang.String newname, java.lang.String newlabel)
copyFieldForTotal
in class MainReportValue
newname
- new name for the fieldnewlabel
- new label for the field