org.jfree.report.demo.reportfooter
Class TriggerComplexPageFooterFunction

java.lang.Object
  |
  +--org.jfree.report.function.AbstractExpression
        |
        +--org.jfree.report.function.AbstractFunction
              |
              +--org.jfree.report.demo.reportfooter.TriggerComplexPageFooterFunction

public class TriggerComplexPageFooterFunction
extends AbstractFunction

See Also:
Serialized Form

Constructor Summary
TriggerComplexPageFooterFunction()
          Creates an unnamed function.
 
Method Summary
 java.lang.Object getValue()
          Return the current expression value.
 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.jfree.report.function.AbstractFunction
clone, groupFinished, groupStarted, itemsAdvanced, itemsFinished, itemsStarted, reportFinished, reportStarted
 
Methods inherited from class org.jfree.report.function.AbstractExpression
getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, setActive, setDependencyLevel, setName, setRuntime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggerComplexPageFooterFunction

public TriggerComplexPageFooterFunction()
Creates an unnamed function. Make sure the name of the function is set using AbstractExpression.setName(java.lang.String) before the function is added to the report's function collection.
Method Detail

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.
Overrides:
reportDone in class AbstractFunction
Parameters:
event - The event.

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.

Overrides:
reportInitialized in class AbstractFunction
Parameters:
event - The event.

getValue

public java.lang.Object getValue()
Return the current expression value.

The value depends (obviously) on the expression implementation.

Returns:
the value of the function.