org.jfree.report.demo.conditionalgroup
Class TriggerNestedGroupFunction

java.lang.Object
  extended byorg.jfree.report.function.AbstractFunction
      extended byorg.jfree.report.demo.conditionalgroup.TriggerNestedGroupFunction
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, Expression, Function, ReportListener, java.io.Serializable

public class TriggerNestedGroupFunction
extends AbstractFunction

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jfree.report.function.Expression
AUTOACTIVATE_PROPERTY
 
Constructor Summary
TriggerNestedGroupFunction()
          Creates an unnamed function.
 
Method Summary
 java.lang.Object getValue()
          Return the current expression value.
 void groupStarted(ReportEvent event)
          Receives notification that a group has started.
 
Methods inherited from class org.jfree.report.function.AbstractFunction
clone, getDataRow, getDependencyLevel, getInstance, getName, getProperties, getProperty, getProperty, groupFinished, initialize, isActive, itemsAdvanced, itemsFinished, itemsStarted, reportDone, reportFinished, reportInitialized, reportStarted, setDataRow, setDependencyLevel, setName, setProperties, setProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggerNestedGroupFunction

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

Method Detail

groupStarted

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

Specified by:
groupStarted in interface ReportListener
Overrides:
groupStarted 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.