Package net.sf.jasperreports.engine.fill
Class JRRecordedValuesGenericPrintElement
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRTemplatePrintElement
-
- net.sf.jasperreports.engine.fill.JRTemplateGenericPrintElement
-
- net.sf.jasperreports.engine.fill.JRRecordedValuesGenericPrintElement
-
- All Implemented Interfaces:
Serializable
,JRRecordedValuesPrintElement
,JRCommonElement
,JRGenericPrintElement
,JRIdentifiable
,JRPrintElement
,JRPropertiesHolder
,JRStyleContainer
,VirtualizationSerializable
public class JRRecordedValuesGenericPrintElement extends JRTemplateGenericPrintElement implements JRRecordedValuesPrintElement
Generic print element implementation that supports recorded values.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement
EXCEPTION_MESSAGE_KEY_TEMPLATE_NOT_FOUND, template
-
Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement
UNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID
-
-
Constructor Summary
Constructors Constructor Description JRRecordedValuesGenericPrintElement()
JRRecordedValuesGenericPrintElement(JRTemplateGenericElement template, PrintElementOriginator originator)
Creates a generic print element.JRRecordedValuesGenericPrintElement(JRTemplateGenericElement template, PrintElementOriginator originator, int parameterCount)
Creates a generic print element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteRecordedValues()
Releases the recorded values set.JRRecordedValues
getRecordedValues()
Returns the recorded values set.void
initRecordedValues(Set<JREvaluationTime> evaluationTimes)
Initializes the recorded values set.void
readVirtualized(VirtualizationInput in)
void
writeVirtualized(VirtualizationOutput out)
-
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, getMode, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setUUID, 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.JRCommonElement
getBackcolor, getForecolor, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUID
-
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement
accept, getHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setY
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
-
-
-
Constructor Detail
-
JRRecordedValuesGenericPrintElement
public JRRecordedValuesGenericPrintElement()
-
JRRecordedValuesGenericPrintElement
public JRRecordedValuesGenericPrintElement(JRTemplateGenericElement template, PrintElementOriginator originator)
Creates a generic print element.- Parameters:
template
- the element template to be used by the elementoriginator
-
-
JRRecordedValuesGenericPrintElement
public JRRecordedValuesGenericPrintElement(JRTemplateGenericElement template, PrintElementOriginator originator, int parameterCount)
Creates a generic print element.- Parameters:
template
- the element template to be used by the elementoriginator
-parameterCount
- the number of parameters that the element will have
-
-
Method Detail
-
getRecordedValues
public JRRecordedValues getRecordedValues()
Description copied from interface:JRRecordedValuesPrintElement
Returns the recorded values set.- Specified by:
getRecordedValues
in interfaceJRRecordedValuesPrintElement
- 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 interfaceJRRecordedValuesPrintElement
-
initRecordedValues
public void initRecordedValues(Set<JREvaluationTime> evaluationTimes)
Description copied from interface:JRRecordedValuesPrintElement
Initializes the recorded values set.- Specified by:
initRecordedValues
in interfaceJRRecordedValuesPrintElement
- Parameters:
evaluationTimes
- future times when the values will be recorded
-
writeVirtualized
public void writeVirtualized(VirtualizationOutput out) throws IOException
- Specified by:
writeVirtualized
in interfaceVirtualizationSerializable
- Overrides:
writeVirtualized
in classJRTemplateGenericPrintElement
- Throws:
IOException
-
readVirtualized
public void readVirtualized(VirtualizationInput in) throws IOException
- Specified by:
readVirtualized
in interfaceVirtualizationSerializable
- Overrides:
readVirtualized
in classJRTemplateGenericPrintElement
- Throws:
IOException
-
-