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

java.lang.Object
  |
  +--com.jrefinery.report.function.AbstractFunction
        |
        +--com.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.

Specified by:
reportInitialized in interface com.jrefinery.report.event.ReportListener
Overrides:
reportInitialized in class com.jrefinery.report.function.AbstractFunction
Parameters:
event - The event.

reportStarted

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

Specified by:
reportStarted in interface com.jrefinery.report.event.ReportListener
Overrides:
reportStarted in class com.jrefinery.report.function.AbstractFunction
Parameters:
event - the event.

reportFinished

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

Specified by:
reportFinished in interface com.jrefinery.report.event.ReportListener
Overrides:
reportFinished in class com.jrefinery.report.function.AbstractFunction
Parameters:
event - the event.

pageStarted

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

Specified by:
pageStarted in interface com.jrefinery.report.event.ReportListener
Overrides:
pageStarted in class com.jrefinery.report.function.AbstractFunction
Parameters:
event - the event.

pageFinished

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

Specified by:
pageFinished in interface com.jrefinery.report.event.ReportListener
Overrides:
pageFinished in class com.jrefinery.report.function.AbstractFunction
Parameters:
event - the event.

groupStarted

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

Specified by:
groupStarted in interface com.jrefinery.report.event.ReportListener
Overrides:
groupStarted in class com.jrefinery.report.function.AbstractFunction
Parameters:
event - the event.

groupFinished

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

Specified by:
groupFinished in interface com.jrefinery.report.event.ReportListener
Overrides:
groupFinished in class com.jrefinery.report.function.AbstractFunction
Parameters:
event - the event.

itemsAdvanced

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

Specified by:
itemsAdvanced in interface com.jrefinery.report.event.ReportListener
Overrides:
itemsAdvanced in class com.jrefinery.report.function.AbstractFunction
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.

Specified by:
itemsStarted in interface com.jrefinery.report.event.ReportListener
Overrides:
itemsStarted in class com.jrefinery.report.function.AbstractFunction
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.

Specified by:
itemsFinished in interface com.jrefinery.report.event.ReportListener
Overrides:
itemsFinished in class com.jrefinery.report.function.AbstractFunction
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.

Specified by:
reportDone in interface com.jrefinery.report.event.ReportListener
Overrides:
reportDone in class com.jrefinery.report.function.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.