net.sf.jasperreports.engine.fill
Class JRRecordedValuesGenericPrintElement

java.lang.Object
  extended by net.sf.jasperreports.engine.fill.JRTemplatePrintElement
      extended by net.sf.jasperreports.engine.fill.JRTemplateGenericPrintElement
          extended by net.sf.jasperreports.engine.fill.JRRecordedValuesGenericPrintElement
All Implemented Interfaces:
java.io.Serializable, JRRecordedValuesPrintElement, JRCommonElement, JRGenericPrintElement, JRIdentifiable, JRPrintElement, JRPropertiesHolder, JRStyleContainer

public class JRRecordedValuesGenericPrintElement
extends JRTemplateGenericPrintElement
implements JRRecordedValuesPrintElement

Generic print element implementation that supports recorded values.

Version:
$Id: JRRecordedValuesGenericPrintElement.java 4648 2011-10-10 12:50:53Z lucianc $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement
template
 
Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement
UNSET_SOURCE_ELEMENT_ID
 
Constructor Summary
JRRecordedValuesGenericPrintElement(JRTemplateGenericElement template)
          Deprecated. provide a source Id via JRRecordedValuesGenericPrintElement(JRTemplateGenericElement, int)
JRRecordedValuesGenericPrintElement(JRTemplateGenericElement template, int sourceElementId)
          Creates a generic print element.
 
Method Summary
 void deleteRecordedValues()
          Releases the recorded values set.
 JRRecordedValues getRecordedValues()
          Returns the recorded values set.
 void initRecordedValues(java.util.Set<JREvaluationTime> evaluationTimes)
          Initializes the recorded values set.
 
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplateGenericPrintElement
accept, getGenericType, getParameterNames, getParameterValue, hasParameter, setParameterValue
 
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement
getBackcolor, getDefaultLineColor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setWidth, setX, setY, updateElementTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement
accept, getHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY
 
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setMode
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
 
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUID
 
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
 

Constructor Detail

JRRecordedValuesGenericPrintElement

public JRRecordedValuesGenericPrintElement(JRTemplateGenericElement template)
Deprecated. provide a source Id via JRRecordedValuesGenericPrintElement(JRTemplateGenericElement, int)

Creates a generic print element.

Parameters:
template - the element template to be used by the element

JRRecordedValuesGenericPrintElement

public JRRecordedValuesGenericPrintElement(JRTemplateGenericElement template,
                                           int sourceElementId)
Creates a generic print element.

Parameters:
template - the element template to be used by the element
sourceElementId - the Id of the source element
Method Detail

getRecordedValues

public JRRecordedValues getRecordedValues()
Description copied from interface: JRRecordedValuesPrintElement
Returns the recorded values set.

Specified by:
getRecordedValues in interface JRRecordedValuesPrintElement
Returns:
the recorded values set

deleteRecordedValues

public void deleteRecordedValues()
Description copied from interface: JRRecordedValuesPrintElement
Releases the recorded values set.

This is called when all the recorded values are available and the element has been evaluated.

Specified by:
deleteRecordedValues in interface JRRecordedValuesPrintElement

initRecordedValues

public void initRecordedValues(java.util.Set<JREvaluationTime> evaluationTimes)
Description copied from interface: JRRecordedValuesPrintElement
Initializes the recorded values set.

Specified by:
initRecordedValues in interface JRRecordedValuesPrintElement
Parameters:
evaluationTimes - future times when the values will be recorded


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com