Package net.sf.jasperreports.engine
Class JRDefaultScriptlet
- java.lang.Object
-
- net.sf.jasperreports.engine.JRAbstractScriptlet
-
- net.sf.jasperreports.engine.JRDefaultScriptlet
-
- Direct Known Subclasses:
MaxPagesGovernor
,TableReportScriptlet
,TimeoutGovernor
public class JRDefaultScriptlet extends JRAbstractScriptlet
This class provides default empty implementations for scriptlet events. It is a convenience class that users can extend when not all methods need to be implemented.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.engine.JRAbstractScriptlet
dataset, EXCEPTION_MESSAGE_KEY_FIELD_NOT_FOUND, EXCEPTION_MESSAGE_KEY_PARAMETER_NOT_FOUND, EXCEPTION_MESSAGE_KEY_VARIABLE_NOT_FOUND, EXCEPTION_MESSAGE_KEY_VARIABLE_VALUE_INCOMPATIBLE, fieldsMap, groups, parametersMap, scriptletDefinition, variablesMap
-
-
Constructor Summary
Constructors Constructor Description JRDefaultScriptlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterColumnInit()
Called after each column is initialized.void
afterDetailEval()
Called after evaluating each detail.void
afterGroupInit(String groupName)
Called after a group is initialized.void
afterPageInit()
Called after each page is initialized.void
afterReportInit()
Called after the report is initialized.void
beforeColumnInit()
Called before each column is initialized.void
beforeDetailEval()
Called before evaluating each detail.void
beforeGroupInit(String groupName)
Called before a group is initialized.void
beforePageInit()
Called before each page is initialized.void
beforeReportInit()
Called before the report is initialized.-
Methods inherited from class net.sf.jasperreports.engine.JRAbstractScriptlet
callAfterColumnInit, callAfterDetailEval, callAfterGroupInit, callAfterPageInit, callAfterReportInit, callBeforeColumnInit, callBeforeDetailEval, callBeforeGroupInit, callBeforePageInit, callBeforeReportInit, evaluateProperties, getFieldValue, getParameterValue, getParameterValue, getVariableValue, setData, setScriptletDefinition, setVariableValue
-
-
-
-
Method Detail
-
beforeReportInit
public void beforeReportInit() throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called before the report is initialized.- Specified by:
beforeReportInit
in classJRAbstractScriptlet
- Throws:
JRScriptletException
-
afterReportInit
public void afterReportInit() throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called after the report is initialized.- Specified by:
afterReportInit
in classJRAbstractScriptlet
- Throws:
JRScriptletException
-
beforePageInit
public void beforePageInit() throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called before each page is initialized.- Specified by:
beforePageInit
in classJRAbstractScriptlet
- Throws:
JRScriptletException
-
afterPageInit
public void afterPageInit() throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called after each page is initialized.- Specified by:
afterPageInit
in classJRAbstractScriptlet
- Throws:
JRScriptletException
-
beforeColumnInit
public void beforeColumnInit() throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called before each column is initialized.- Specified by:
beforeColumnInit
in classJRAbstractScriptlet
- Throws:
JRScriptletException
-
afterColumnInit
public void afterColumnInit() throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called after each column is initialized.- Specified by:
afterColumnInit
in classJRAbstractScriptlet
- Throws:
JRScriptletException
-
beforeGroupInit
public void beforeGroupInit(String groupName) throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called before a group is initialized.- Specified by:
beforeGroupInit
in classJRAbstractScriptlet
- Parameters:
groupName
- the group name- Throws:
JRScriptletException
-
afterGroupInit
public void afterGroupInit(String groupName) throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called after a group is initialized.- Specified by:
afterGroupInit
in classJRAbstractScriptlet
- Parameters:
groupName
- the group name- Throws:
JRScriptletException
-
beforeDetailEval
public void beforeDetailEval() throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called before evaluating each detail.- Specified by:
beforeDetailEval
in classJRAbstractScriptlet
- Throws:
JRScriptletException
-
afterDetailEval
public void afterDetailEval() throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called after evaluating each detail.- Specified by:
afterDetailEval
in classJRAbstractScriptlet
- Throws:
JRScriptletException
-
-