|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.jfree.report.function.AbstractExpression
|
+--org.jfree.report.function.AbstractFunction
Base class for implementing new report functions. Provides empty implementations of all the methods in the Function interface.
The function is initialized when it gets added to the report. The methodinitialize gets called to perform the required initializations. At this
point, all function properties must have been set to a valid state and the function
must be named. If the initialisation fails, a FunctionInitializeException is thrown and
the function get not added to the report.
| Constructor Summary | |
protected |
AbstractFunction()
Creates an unnamed function. |
protected |
AbstractFunction(java.lang.String name)
Creates an named function. |
| Method Summary | |
java.lang.Object |
clone()
Clones the function. |
void |
groupFinished(ReportEvent event)
Receives notification that a group has finished. |
void |
groupStarted(ReportEvent event)
Receives notification that a group has started. |
void |
itemsAdvanced(ReportEvent event)
Receives notification that a row of data is being processed. |
void |
itemsFinished(ReportEvent event)
Receives notification that a group of item bands has been completed. |
void |
itemsStarted(ReportEvent event)
Receives notification that a group of item bands is about to be processed. |
void |
reportDone(ReportEvent event)
Receives notification that report generation has completed, the report footer was printed, no more output is done. |
void |
reportFinished(ReportEvent event)
Receives notification that the report has finished. |
void |
reportInitialized(ReportEvent event)
Receives notification that report generation initializes the current run. |
void |
reportStarted(ReportEvent event)
Receives notification that the report has started. |
| 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 |
protected AbstractFunction()
AbstractExpression.setName(java.lang.String) before the function is added to the report's function collection.protected AbstractFunction(java.lang.String name)
name - the name of the function.| Method Detail |
public void reportInitialized(ReportEvent event)
The event carries a ReportState.Started state. Use this to initialize the report.
event - The event.public void reportStarted(ReportEvent event)
event - the event.public void reportFinished(ReportEvent event)
event - the event.public void groupStarted(ReportEvent event)
event - the event.public void groupFinished(ReportEvent event)
event - the event.public void itemsAdvanced(ReportEvent event)
event - the event.public void itemsStarted(ReportEvent event)
The next events will be itemsAdvanced events until the itemsFinished event is raised.
event - The event.public void itemsFinished(ReportEvent event)
The itemBand is finished, the report starts to close open groups.
event - The event.public void reportDone(ReportEvent event)
event - The event.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Be aware, this does not create a deep copy. If you have complex strucures contained in objects, you have to override this function.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||