net.sf.jasperreports.engine.fill
Class JRFillElementDataset

java.lang.Object
  extended by net.sf.jasperreports.engine.fill.JRFillElementDataset
All Implemented Interfaces:
java.lang.Cloneable, JRCloneable, JRElementDataset
Direct Known Subclasses:
JRFillChartDataset, JRFillCrosstab.JRFillCrosstabDataset

public abstract class JRFillElementDataset
extends java.lang.Object
implements JRElementDataset

Version:
$Id: JRFillElementDataset.java 2004 2007-12-05 14:18:45Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Field Summary
protected  JRFillDatasetRun datasetRun
           
protected  JRGroup incrementGroup
           
protected  JRElementDataset parent
           
protected  JRGroup resetGroup
           
 
Constructor Summary
protected JRFillElementDataset(JRElementDataset dataset, JRFillObjectFactory factory)
           
 
Method Summary
 java.lang.Object clone()
           
protected abstract  void customEvaluate(JRCalculator calculator)
           
protected abstract  void customIncrement()
           
protected abstract  void customInitialize()
           
protected  void evaluate(JRCalculator calculator)
           
 void evaluateDatasetRun(byte evaluation)
           
protected  void evaluateIncrementWhenExpression(JRCalculator calculator)
           
 JRDatasetRun getDatasetRun()
          Returns the sub dataset run for this chart dataset.
 JRGroup getIncrementGroup()
          Gets the selected increment group in case of increment type group.
 byte getIncrementType()
          Returns the increment type.
 JRExpression getIncrementWhenExpression()
          Returns the "increment when" expression.
 JRFillDataset getInputDataset()
           
 JRGroup getResetGroup()
          Gets the selected reset group in case of reset type group.
 byte getResetType()
          Gets the reset type.
protected  java.util.TimeZone getTimeZone()
           
protected  void increment()
           
protected  void initialize()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.engine.JRElementDataset
collectExpressions
 

Field Detail

parent

protected JRElementDataset parent

resetGroup

protected JRGroup resetGroup

incrementGroup

protected JRGroup incrementGroup

datasetRun

protected JRFillDatasetRun datasetRun
Constructor Detail

JRFillElementDataset

protected JRFillElementDataset(JRElementDataset dataset,
                               JRFillObjectFactory factory)
Method Detail

getResetType

public byte getResetType()
Description copied from interface: JRElementDataset
Gets the reset type. This specifies the range of report data used for filling the dataset.

Specified by:
getResetType in interface JRElementDataset
Returns:
one of the reset constants in JRVariable

getIncrementType

public byte getIncrementType()
Description copied from interface: JRElementDataset
Returns the increment type. This specifies dataset values increment step.

Specified by:
getIncrementType in interface JRElementDataset
Returns:
one of the reset constants in JRVariable, since the increment type uses the same constants as the reset type.

getResetGroup

public JRGroup getResetGroup()
Description copied from interface: JRElementDataset
Gets the selected reset group in case of reset type group.

Specified by:
getResetGroup in interface JRElementDataset

getIncrementGroup

public JRGroup getIncrementGroup()
Description copied from interface: JRElementDataset
Gets the selected increment group in case of increment type group.

Specified by:
getIncrementGroup in interface JRElementDataset

getTimeZone

protected java.util.TimeZone getTimeZone()

initialize

protected void initialize()

evaluate

protected void evaluate(JRCalculator calculator)
                 throws JRExpressionEvalException
Throws:
JRExpressionEvalException

evaluateIncrementWhenExpression

protected void evaluateIncrementWhenExpression(JRCalculator calculator)
                                        throws JRExpressionEvalException
Throws:
JRExpressionEvalException

increment

protected void increment()

customInitialize

protected abstract void customInitialize()

customEvaluate

protected abstract void customEvaluate(JRCalculator calculator)
                                throws JRExpressionEvalException
Throws:
JRExpressionEvalException

customIncrement

protected abstract void customIncrement()

getDatasetRun

public JRDatasetRun getDatasetRun()
Description copied from interface: JRElementDataset
Returns the sub dataset run for this chart dataset.

Specified by:
getDatasetRun in interface JRElementDataset
Returns:
the sub dataset run for this chart dataset

evaluateDatasetRun

public void evaluateDatasetRun(byte evaluation)
                        throws JRException
Throws:
JRException

getInputDataset

public JRFillDataset getInputDataset()

getIncrementWhenExpression

public JRExpression getIncrementWhenExpression()
Description copied from interface: JRElementDataset
Returns the "increment when" expression.

This expression determines whether a dataset will be incremented or not.

The expression (if not null) is evaluated before each increment of the dataset. The increment will be carried on only when the result of the evaluation is Boolean.TRUE; if the result is null or false, the increment will not be performed.

Specified by:
getIncrementWhenExpression in interface JRElementDataset
Returns:
the "increment when" expression

clone

public java.lang.Object clone()
Specified by:
clone in interface JRCloneable
Overrides:
clone in class java.lang.Object


© 2001-2006 JasperSoft Corporation www.jaspersoft.com