org.jfree.report.flow.layoutprocessor

Class SectionLayoutController

public class SectionLayoutController extends ElementLayoutController

Creation-Date: 24.11.2006, 13:56:10

Author: Thomas Morgner

Constructor Summary
SectionLayoutController()
Method Summary
protected FlowControllerfinishData(ReportTarget target, FlowController fc)
protected LayoutControllerfinishElement(ReportTarget target)
Finishes the processing of this element.
intgetIndex()
Node[]getNodes()
protected booleanisDisplayable(Node node)
LayoutControllerjoin(FlowController flowController)
Joins with a delegated process flow.
protected LayoutControllerprocessChild(SectionLayoutController derived, Node node, FlowController flowController)
protected LayoutControllerprocessContent(ReportTarget target)
protected voidresetSectionForRepeat()
voidsetIndex(int index)
protected FlowControllerstartData(ReportTarget target, FlowController fc)

Constructor Detail

SectionLayoutController

public SectionLayoutController()

Method Detail

finishData

protected FlowController finishData(ReportTarget target, FlowController fc)

finishElement

protected LayoutController finishElement(ReportTarget target)
Finishes the processing of this element. This method is called when the processing state is 'FINISHING'. The element should be closed now and all privatly owned resources should be freed. If the element has a parent, it would be time to join up with the parent now, else the processing state should be set to 'FINISHED'.

Parameters: target the report target that receives generated events.

Returns: the new layout controller instance representing the new state.

Throws: DataSourceException if there was a problem reading data from the datasource. ReportProcessingException if there was a general problem during the report processing. ReportDataFactoryException if there was an error trying query data.

getIndex

public int getIndex()

getNodes

public Node[] getNodes()

isDisplayable

protected boolean isDisplayable(Node node)

join

public LayoutController join(FlowController flowController)
Joins with a delegated process flow. This is generally called from a child flow and should *not* (I mean it!) be called from outside. If you do, you'll suffer.

Parameters: flowController the flow controller of the parent.

Returns: the joined layout controller that incorperates all changes from the delegate.

processChild

protected LayoutController processChild(SectionLayoutController derived, Node node, FlowController flowController)

processContent

protected LayoutController processContent(ReportTarget target)

resetSectionForRepeat

protected void resetSectionForRepeat()

setIndex

public void setIndex(int index)

startData

protected FlowController startData(ReportTarget target, FlowController fc)