|
||||||||||
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 ReportListener
reportInitialized
in class PageFunction
event
- the event.public void pageStarted(ReportEvent event)
Prepared data is bound to the display item, the current displayed row.
pageStarted
in interface PageEventListener
pageStarted
in class PageFunction
event
- 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 ReportListener
groupStarted
in class PageFunction
event
- the event.protected void setPage(int page)
setPage
in class PageFunction
page
- the page number.protected int getPage()
getPage
in class PageFunction
public Expression getInstance()
getInstance
in interface Expression
getInstance
in class AbstractFunction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |