|
||||||||||
| 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.layout.output.DefaultOutputFunction
public class DefaultOutputFunction
Creation-Date: 08.04.2007, 16:22:18
| Constructor Summary | |
|---|---|
DefaultOutputFunction()
Creates an unnamed function. |
|
| Method Summary | |
|---|---|
void |
addSubReportMarkers(InlineSubreportMarker[] markers)
|
void |
clearInlineSubreports(SubReportProcessType inlineExecution)
|
Object |
clone()
Clones the function. |
boolean |
createRollbackInformation()
|
OutputFunction |
deriveForPagebreak()
Creates a cheaper version of the deep-copy of the output function. |
OutputFunction |
deriveForStorage()
Creates a storage-copy of the output function. |
void |
endCrosstabLayout()
|
PreparedCrosstabLayout |
getCurrentCrosstabLayout()
|
InlineSubreportMarker[] |
getInlineSubreports()
|
Expression |
getInstance()
Return a completly separated copy of this function. |
Renderer |
getRenderer()
|
Object |
getValue()
Return the current expression value. |
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 |
pageFinished(ReportEvent event)
Receives notification that a page has ended. |
void |
pageStarted(ReportEvent event)
Receives notification that a page has started. |
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. |
void |
restart(ReportState state)
|
void |
setRenderer(Renderer renderer)
|
PreparedCrosstabLayout |
startCrosstabLayout()
|
void |
updateFooterArea(ReportEvent event)
|
| Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
|---|
getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
| 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, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime |
| Constructor Detail |
|---|
public DefaultOutputFunction()
AbstractExpression.setName(java.lang.String) before the function
is added to the report's function collection.
| Method Detail |
|---|
public Object getValue()
The value depends (obviously) on the expression implementation.
getValue in interface Expressionpublic void reportInitialized(ReportEvent event)
AbstractFunctionThe event carries a ReportState.Started state. Use this to initialize the report.
reportInitialized in interface ReportListenerreportInitialized in class AbstractFunctionevent - The event.public void reportStarted(ReportEvent event)
Layout and draw the report header after the PageStartEvent was fired.
reportStarted in interface ReportListenerreportStarted in class AbstractFunctionevent - the event.public void addSubReportMarkers(InlineSubreportMarker[] markers)
public void groupStarted(ReportEvent event)
Prints the GroupHeader
groupStarted in interface ReportListenergroupStarted in class AbstractFunctionevent - Information about the event.public void itemsStarted(ReportEvent event)
The next events will be itemsAdvanced events until the itemsFinished event is raised.
itemsStarted in interface ReportListeneritemsStarted in class AbstractFunctionevent - The event.public void itemsAdvanced(ReportEvent event)
prints the ItemBand.
itemsAdvanced in interface ReportListeneritemsAdvanced in class AbstractFunctionevent - Information about the event.public void itemsFinished(ReportEvent event)
The itemBand is finished, the report starts to close open groups.
itemsFinished in interface ReportListeneritemsFinished in class AbstractFunctionevent - The event.public void groupFinished(ReportEvent event)
Prints the GroupFooter.
groupFinished in interface ReportListenergroupFinished in class AbstractFunctionevent - Information about the event.public void reportFinished(ReportEvent event)
Prints the ReportFooter and forces the last pagebreak.
reportFinished in interface ReportListenerreportFinished in class AbstractFunctionevent - Information about the event.public void reportDone(ReportEvent event)
reportDone in interface ReportListenerreportDone in class AbstractFunctionevent - The event.public void pageStarted(ReportEvent event)
This prints the PageHeader. If this is the first page, the header is not printed if the pageheader style-flag DISPLAY_ON_FIRSTPAGE is set to false. If this event is known to be the last pageStarted event, the DISPLAY_ON_LASTPAGE is evaluated and the header is printed only if this flag is set to TRUE.
If there is an active repeating GroupHeader, print the last one. The GroupHeader is searched for the current group and all parent groups, starting at the current group and ascending to the parents. The first goupheader that has the StyleFlag REPEAT_HEADER set to TRUE is printed. The PageHeader and the repeating GroupHeader are spooled until the first real content is printed. This way, the LogicalPage remains empty until an other band is printed.
pageStarted in interface PageEventListenerevent - Information about the event.public void pageFinished(ReportEvent event)
pageFinished in interface PageEventListenerevent - the report event.
public void updateFooterArea(ReportEvent event)
throws ReportProcessingException
ReportProcessingException
public final Object clone()
throws CloneNotSupportedException
Be aware, this does not create a deep copy. If you have complex strucures contained in objects, you have to override this function.
clone in interface Expressionclone in class AbstractExpressionCloneNotSupportedException - this should never happen.public Expression getInstance()
AbstractExpression
getInstance in interface ExpressiongetInstance in class AbstractExpressionpublic OutputFunction deriveForStorage()
deriveForStorage in interface OutputFunctionpublic OutputFunction deriveForPagebreak()
deriveForPagebreak in interface OutputFunctionpublic void setRenderer(Renderer renderer)
public Renderer getRenderer()
public InlineSubreportMarker[] getInlineSubreports()
getInlineSubreports in interface OutputFunctionpublic void clearInlineSubreports(SubReportProcessType inlineExecution)
clearInlineSubreports in interface OutputFunctionpublic PreparedCrosstabLayout startCrosstabLayout()
public PreparedCrosstabLayout getCurrentCrosstabLayout()
public void endCrosstabLayout()
public void restart(ReportState state)
throws ReportProcessingException
restart in interface OutputFunctionReportProcessingExceptionpublic boolean createRollbackInformation()
createRollbackInformation in interface OutputFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||