public class ChoiceColumnCriteria extends ColumnCriteria
Constructor and Description |
---|
ChoiceColumnCriteria(SmartReportNode node,
ChoiceField fieldforcolumncriteria)
create a choice column criteria based on a choice field on the object having
the the main value field
|
ChoiceColumnCriteria(SmartReportNode node,
ChoiceField fieldforcolumncriteria,
java.lang.String suffix)
create a choice column criteria based on a choice field on the object having
the the main value field
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateExtractor() |
ChoiceField |
getFieldForColumnCriteria() |
protected void |
writeColumnValueGenerator(SourceGenerator sg,
ObjectReportNode objectReportNode,
java.lang.String prefix)
writes the column value generator in the smart report code
|
getNode, getSuffix
public ChoiceColumnCriteria(SmartReportNode node, ChoiceField fieldforcolumncriteria)
node
- node used for the main report valuefieldforcolumncriteria
- choice field used to sort value by columnspublic ChoiceColumnCriteria(SmartReportNode node, ChoiceField fieldforcolumncriteria, java.lang.String suffix)
node
- node used for the main report valuefieldforcolumncriteria
- choice field used to sort value by columnssuffix
- sufix of the main valuepublic ChoiceField getFieldForColumnCriteria()
public java.lang.String generateExtractor()
generateExtractor
in class ColumnCriteria
protected void writeColumnValueGenerator(SourceGenerator sg, ObjectReportNode objectReportNode, java.lang.String prefix) throws java.io.IOException
ColumnCriteria
writeColumnValueGenerator
in class ColumnCriteria
sg
- source generatorobjectReportNode
- main node of the reportprefix
- prefix of the nodejava.io.IOException
- if anything bad happens while generating the code