|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.AbstractFunction
org.pentaho.reporting.engine.classic.core.function.PageFunction
org.pentaho.reporting.engine.classic.core.function.PageOfPagesFunction
public class PageOfPagesFunction
A report function that combines PageFunctionand PageTotalFunction. Restrictions for both classes
apply to this one also.
| Constructor Summary | |
|---|---|
PageOfPagesFunction()
Default Constructor. |
|
PageOfPagesFunction(String name)
Constructs a named function. |
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a copy of the function. |
int |
getDependencyLevel()
Returns the defined dependency level. |
String |
getFormat()
Returns the format used to print the value. |
Expression |
getInstance()
Return a completly separated copy of this function. |
Object |
getValue()
Return the value of this Function. |
void |
groupFinished(ReportEvent event)
Receives notification that a group has finished. |
void |
groupStarted(ReportEvent event)
Forwards the report event to both the base class and the page-total function delegate. |
void |
pageFinished(ReportEvent event)
Forwards the report event to both the base class and the page-total function delegate. |
void |
pageStarted(ReportEvent event)
Forwards the report event to both the base class and the page-total function delegate. |
void |
reportDone(ReportEvent event)
Receives notification that report generation has completed, the report footer was printed, no more output is done. |
void |
reportInitialized(ReportEvent event)
Forwards the report event to both the base class and the page-total function delegate. |
void |
setDependencyLevel(int level)
Defines the defined dependency level. |
void |
setFormat(String format)
Set the format of the value. |
void |
setGroup(String group)
Sets the name of the group that the function acts upon. |
void |
setRuntime(ExpressionRuntime runtime)
Defines the ExpressionRune used in this expression. |
void |
setStartPage(int startPage)
Defines the page number where the counting starts. |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.function.PageFunction |
|---|
getGroup, getPage, getPageIncrement, getStartPage, isDeepTraversing, setIgnorePageCancelEvents, setPageIncrement |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractFunction |
|---|
itemsAdvanced, itemsFinished, itemsStarted, reportFinished, reportStarted |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
|---|
getDataRow, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isPreserve, setActive, setName, setPreserve |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.pentaho.reporting.engine.classic.core.function.Expression |
|---|
getDataRow, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isPreserve, setName |
| Constructor Detail |
|---|
public PageOfPagesFunction()
public PageOfPagesFunction(String name)
name - the function name.| Method Detail |
|---|
public String getFormat()
MessageFormatpublic void setFormat(String format)
MessageFormat. The first parameter is
filled with the current page, the second with the total number of pages.
format - the format string.public void reportInitialized(ReportEvent event)
reportInitialized in interface ReportListenerreportInitialized in class PageFunctionevent - the received report event.public void pageStarted(ReportEvent event)
pageStarted in interface PageEventListenerpageStarted in class PageFunctionevent - the received report event.public void pageFinished(ReportEvent event)
pageFinished in interface PageEventListenerpageFinished in class PageFunctionevent - the received report event.public void groupStarted(ReportEvent event)
groupStarted in interface ReportListenergroupStarted in class PageFunctionevent - the received report event.public void groupFinished(ReportEvent event)
AbstractFunction
groupFinished in interface ReportListenergroupFinished in class AbstractFunctionevent - the event.public void reportDone(ReportEvent event)
reportDone in interface ReportListenerreportDone in class AbstractFunctionevent - The event.public Object getValue()
Function. The method uses the format definition from the properties and adds the
current page and the total number of pages as parameter.
getValue in interface ExpressiongetValue in class PageFunctionpublic void setGroup(String group)
setGroup in class PageFunctiongroup - the group name.public void setStartPage(int startPage)
setStartPage in class PageFunctionstartPage - the page number of the first page.public void setDependencyLevel(int level)
setDependencyLevel in interface ExpressionsetDependencyLevel in class PageFunctionlevel - the dependency level.public int getDependencyLevel()
getDependencyLevel in interface ExpressiongetDependencyLevel in class PageFunctionpublic Expression getInstance()
getInstance in interface ExpressiongetInstance in class AbstractExpressionpublic void setRuntime(ExpressionRuntime runtime)
setRuntime in interface ExpressionsetRuntime in class AbstractExpressionruntime - the runtime information for the expression
public Object clone()
throws CloneNotSupportedException
clone in interface Expressionclone in class AbstractExpressionCloneNotSupportedException - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||