org.pentaho.reporting.engine.classic.core.function
Class TriggerPageFooterFunction
java.lang.Object
org.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.AbstractFunction
org.pentaho.reporting.engine.classic.core.function.TriggerPageFooterFunction
- All Implemented Interfaces:
- Serializable, Cloneable, EventListener, ReportListener, Expression, Function, LayoutProcessorFunction
public class TriggerPageFooterFunction
- extends AbstractFunction
- implements LayoutProcessorFunction
This function enables a "PageFooter only on last page" functionality.
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
Method Summary |
Object |
getValue()
This method returns nothing. |
void |
reportDone(ReportEvent event)
Receives notification that report generation has completed, the report footer was printed, no more output is done. |
void |
reportInitialized(ReportEvent event)
Receives notification that report generation initializes the current run. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
Methods inherited from interface org.pentaho.reporting.engine.classic.core.function.Expression |
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime |
TriggerPageFooterFunction
public TriggerPageFooterFunction()
- Creates a new TriggerPageFooterFunction with no name. You have to define one using "setName" or the function will
not work.
reportInitialized
public void reportInitialized(ReportEvent event)
- Receives notification that report generation initializes the current run.
The event carries a
ReportState.Started state. Use this to initialize the report.
- Specified by:
reportInitialized
in interface ReportListener
- Overrides:
reportInitialized
in class AbstractFunction
- Parameters:
event
- The event.
reportDone
public void reportDone(ReportEvent event)
- Receives notification that report generation has completed, the report footer was printed, no more output is done.
This is a helper event to shut down the output service.
- Specified by:
reportDone
in interface ReportListener
- Overrides:
reportDone
in class AbstractFunction
- Parameters:
event
- The event.
getValue
public Object getValue()
- This method returns nothing.
- Specified by:
getValue
in interface Expression
- Returns:
- the value of the function.