Class FillItemDataset
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillElementDataset
-
- net.sf.jasperreports.components.items.fill.FillItemDataset
-
- All Implemented Interfaces:
java.lang.Cloneable,DatasetRunHolder,JRCloneable,JRElementDataset
public class FillItemDataset extends JRFillElementDataset
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected byteevaluationprotected JRFillExpressionEvaluatorevaluatorprotected FillItemDataitemData-
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElementDataset
datasetRun, incrementGroup, parent, resetGroup
-
-
Constructor Summary
Constructors Constructor Description FillItemDataset(FillItemData itemData, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectExpressions(JRExpressionCollector collector)protected voidcustomEvaluate(JRCalculator calculator)Evaluates the expressions associated with the dataset.protected voidcustomIncrement()Increments the dataset by collecting the result of the expression evaluation.protected voidcustomInitialize()Initializes the element dataset.bytegetEvaluation()voidincrement()voidsetEvaluation(byte evaluation)-
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElementDataset
clone, evaluate, evaluateDatasetRun, evaluateIncrementWhenExpression, getDatasetResetType, getDatasetRun, getFillDataset, getFiller, getIncrementGroup, getIncrementTypeValue, getIncrementWhenExpression, getInputDataset, getLocale, getResetGroup, getTimeZone, initialize, setBand
-
-
-
-
Field Detail
-
itemData
protected final FillItemData itemData
-
evaluator
protected JRFillExpressionEvaluator evaluator
-
evaluation
protected byte evaluation
-
-
Constructor Detail
-
FillItemDataset
public FillItemDataset(FillItemData itemData, JRFillObjectFactory factory)
-
-
Method Detail
-
customEvaluate
protected void customEvaluate(JRCalculator calculator) throws JRExpressionEvalException
Description copied from class:JRFillElementDatasetEvaluates the expressions associated with the dataset.Usually, the result of the evaluation would be preserved so that it is used in
JRFillElementDataset.customIncrement()- Specified by:
customEvaluatein classJRFillElementDataset- Parameters:
calculator- used to evaluate expressions- Throws:
JRExpressionEvalException- any exception that occurs while evaluating expressions
-
customIncrement
protected void customIncrement()
Description copied from class:JRFillElementDatasetIncrements the dataset by collecting the result of the expression evaluation.- Specified by:
customIncrementin classJRFillElementDataset
-
customInitialize
protected void customInitialize()
Description copied from class:JRFillElementDatasetInitializes the element dataset.The dataset is initialized before being used and after each time the dataset gets reset.
- Specified by:
customInitializein classJRFillElementDataset- See Also:
JRFillElementDataset.getDatasetResetType()
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
-
increment
public void increment()
- Overrides:
incrementin classJRFillElementDataset
-
getEvaluation
public byte getEvaluation()
- Returns:
- the evaluation
-
setEvaluation
public void setEvaluation(byte evaluation)
- Parameters:
evaluation- the evaluation to set
-
-