|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.report.function.AbstractFunction
org.jfree.report.function.PageFunction
org.jfree.report.function.PageTotalFunction
Prints the total number of pages of an report. If a group is specified, this function expects the group to have the manual pagebreak enabled. This function will only work as expected in group mode if the named group has pagebreak set to true.
| Field Summary |
| Fields inherited from interface org.jfree.report.function.Expression |
AUTOACTIVATE_PROPERTY |
| Constructor Summary | |
PageTotalFunction()
Creates a new page total function. |
|
| Method Summary | |
Expression |
getInstance()
Return a completly separated copy of this function. |
protected int |
getPage()
Returns the page number. |
void |
groupStarted(ReportEvent event)
Receives notification that a group has started. |
void |
pageStarted(ReportEvent event)
Receives notification from the report engine that a new page is starting. |
void |
reportInitialized(ReportEvent event)
Receives notification that the report has started. |
protected void |
setPage(int page)
Sets the page number. |
| Methods inherited from class org.jfree.report.function.PageFunction |
getGroup, getStartPage, getValue, initialize, isIgnorePageCancelEvents, pageCanceled, pageFinished, setGroup |
| Methods inherited from class org.jfree.report.function.AbstractFunction |
clone, getDataRow, getDependencyLevel, getName, getProperties, getProperty, getProperty, groupFinished, isActive, itemsAdvanced, itemsFinished, itemsStarted, reportDone, reportFinished, 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 |
public PageTotalFunction()
| Method Detail |
public void reportInitialized(ReportEvent event)
reportInitialized in interface ReportListenerreportInitialized in class PageFunctionevent - the event.public void pageStarted(ReportEvent event)
Prepared data is bound to the display item, the current displayed row.
pageStarted in interface PageEventListenerpageStarted in class PageFunctionevent - Information about the event.public void groupStarted(ReportEvent event)
If no group is specified for the function, then the event is ignored.
groupStarted in interface ReportListenergroupStarted in class PageFunctionevent - the event.protected void setPage(int page)
setPage in class PageFunctionpage - the page number.protected int getPage()
getPage in class PageFunctionpublic Expression getInstance()
getInstance in interface ExpressiongetInstance in class AbstractFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||