Package net.sf.jasperreports.governors
Class MaxPagesGovernor
- java.lang.Object
-
- net.sf.jasperreports.engine.JRAbstractScriptlet
-
- net.sf.jasperreports.engine.JRDefaultScriptlet
-
- net.sf.jasperreports.governors.MaxPagesGovernor
-
public class MaxPagesGovernor extends JRDefaultScriptlet
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_MAX_PAGES
static String
PROPERTY_MAX_PAGES_ENABLED
-
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 MaxPagesGovernor(int maxPages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPageInit()
Called after each page is initialized.-
Methods inherited from class net.sf.jasperreports.engine.JRDefaultScriptlet
afterColumnInit, afterDetailEval, afterGroupInit, afterReportInit, beforeColumnInit, beforeDetailEval, beforeGroupInit, beforePageInit, beforeReportInit
-
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
-
-
-
-
Field Detail
-
PROPERTY_MAX_PAGES_ENABLED
public static final String PROPERTY_MAX_PAGES_ENABLED
- See Also:
- Constant Field Values
-
PROPERTY_MAX_PAGES
public static final String PROPERTY_MAX_PAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
afterPageInit
public void afterPageInit() throws JRScriptletException
Description copied from class:JRAbstractScriptlet
Called after each page is initialized.- Overrides:
afterPageInit
in classJRDefaultScriptlet
- Throws:
JRScriptletException
-
-