com.jrefinery.report.ext.junit.base.functionality
Class EventOrderFunction

java.lang.Object
  extended bycom.jrefinery.report.function.AbstractFunction
      extended bycom.jrefinery.report.ext.junit.base.functionality.EventOrderFunction
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, com.jrefinery.report.function.Expression, com.jrefinery.report.function.Function, com.jrefinery.report.event.ReportListener

public class EventOrderFunction
extends com.jrefinery.report.function.AbstractFunction


Field Summary
 
Fields inherited from interface com.jrefinery.report.function.Expression
AUTOACTIVATE_PROPERTY
 
Constructor Summary
EventOrderFunction()
           
EventOrderFunction(java.lang.String name)
           
 
Method Summary
 java.lang.Object getValue()
          Return the current expression value.
 void groupFinished(com.jrefinery.report.event.ReportEvent event)
          Receives notification that a group has finished.
 void groupStarted(com.jrefinery.report.event.ReportEvent event)
          Receives notification that a group has started.
 void itemsAdvanced(com.jrefinery.report.event.ReportEvent event)
          Receives notification that a row of data is being processed.
 void itemsFinished(com.jrefinery.report.event.ReportEvent event)
          Receives notification that a group of item bands has been completed.
 void itemsStarted(com.jrefinery.report.event.ReportEvent event)
          Receives notification that a group of item bands is about to be processed.
 void pageFinished(com.jrefinery.report.event.ReportEvent event)
          Receives notification that a page has ended.
 void pageStarted(com.jrefinery.report.event.ReportEvent event)
          Receives notification that a page has started.
 void reportDone(com.jrefinery.report.event.ReportEvent event)
          Receives notification that report generation has completed, the report footer was printed, no more output is done.
 void reportFinished(com.jrefinery.report.event.ReportEvent event)
          Receives notification that the report has finished.
 void reportInitialized(com.jrefinery.report.event.ReportEvent event)
          Receives notification that report generation initializes the current run.
 void reportStarted(com.jrefinery.report.event.ReportEvent event)
          Receives notification that the report has started.
 
Methods inherited from class com.jrefinery.report.function.AbstractFunction
clone, getDataRow, getDependencyLevel, getInstance, getName, getProperties, getProperty, getProperty, initialize, isActive, setDataRow, setDependencyLevel, setName, setProperties, setProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventOrderFunction

public EventOrderFunction()

EventOrderFunction

public EventOrderFunction(java.lang.String name)
Method Detail

reportInitialized

public void reportInitialized(com.jrefinery.report.event.ReportEvent event)
Receives notification that report generation initializes the current run.

The event carries a ReportState.Started state. Use this to initialize the report.

Parameters:
event - The event.

reportStarted

public void reportStarted(com.jrefinery.report.event.ReportEvent event)
Receives notification that the report has started.

Parameters:
event - the event.

reportFinished

public void reportFinished(com.jrefinery.report.event.ReportEvent event)
Receives notification that the report has finished.

Parameters:
event - the event.

pageStarted

public void pageStarted(com.jrefinery.report.event.ReportEvent event)
Receives notification that a page has started.

Parameters:
event - the event.

pageFinished

public void pageFinished(com.jrefinery.report.event.ReportEvent event)
Receives notification that a page has ended.

Parameters:
event - the event.

groupStarted

public void groupStarted(com.jrefinery.report.event.ReportEvent event)
Receives notification that a group has started.

Parameters:
event - the event.

groupFinished

public void groupFinished(com.jrefinery.report.event.ReportEvent event)
Receives notification that a group has finished.

Parameters:
event - the event.

itemsAdvanced

public void itemsAdvanced(com.jrefinery.report.event.ReportEvent event)
Receives notification that a row of data is being processed.

Parameters:
event - the event.

itemsStarted

public void itemsStarted(com.jrefinery.report.event.ReportEvent event)
Receives notification that a group of item bands is about to be processed.

The next events will be itemsAdvanced events until the itemsFinished event is raised.

Parameters:
event - The event.

itemsFinished

public void itemsFinished(com.jrefinery.report.event.ReportEvent event)
Receives notification that a group of item bands has been completed.

The itemBand is finished, the report starts to close open groups.

Parameters:
event - The event.

reportDone

public void reportDone(com.jrefinery.report.event.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.

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.