Java Doc for ElementLayoutController.java in  » Report » pentaho-report » org » jfree » report » flow » layoutprocessor » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » pentaho report » org.jfree.report.flow.layoutprocessor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.report.flow.layoutprocessor.ElementLayoutController

All known Subclasses:   org.jfree.report.modules.misc.autotable.flow.AutoTableLayoutController,  org.jfree.report.flow.layoutprocessor.SectionLayoutController,  org.jfree.report.flow.layoutprocessor.ContentElementLayoutController,  org.jfree.report.modules.misc.autotable.flow.AutoTableItemLayoutController,
ElementLayoutController
abstract public class ElementLayoutController implements LayoutController(Code)
Creation-Date: 24.11.2006, 13:56:30
author:
   Thomas Morgner

Inner Class :protected static class ElementPrecomputeKey implements PrecomputeNodeKey

Field Summary
final public static  intFINISHED
    
final public static  intFINISHING
    
final public static  intNOT_STARTED
    
final public static  intOPENED
    
final public static  intWAITING_FOR_JOIN
    

Constructor Summary
protected  ElementLayoutController()
    

Method Summary
final public  LayoutControlleradvance(ReportTarget target)
     Advances the layout controller to the next state.
public  Objectclone()
    
protected  AttributeMapcomputeAttributes(FlowController fc, Element element, ReportTarget target)
    
public  LayoutControllercreatePrecomputeInstance(FlowController fc)
     Derives a copy of this controller that is suitable to perform a precomputation.
protected  LayoutControllerfinishElement(ReportTarget target)
     Finishes the processing of this element.
public  AttributeMapgetAttributeMap()
    
public  ElementgetElement()
    
public  intgetExpressionsCount()
    
public  FlowControllergetFlowController()
    
public  intgetIterationCount()
    
public  ObjectgetNode()
    
public  LayoutControllergetParent()
     Retrieves the parent of this layout controller.
public  intgetProcessingState()
    
protected  FlowControllerhandleDefaultEndElement(ReportTarget target)
    
public  voidinitialize(Object node, FlowController flowController, LayoutController parent)
     Initializes the layout controller.
public  booleanisAdvanceable()
    
public  booleanisPrecomputing()
    
protected  FlowControllerperformElementPrecomputation(Expression[] expressions, FlowController fc)
    
abstract protected  LayoutControllerprocessContent(ReportTarget target)
     Processes any content in this element.
public  voidsetFlowController(FlowController flowController)
    
public  voidsetParent(LayoutController parent)
    
public  voidsetProcessingState(int processingState)
    
protected  FlowControllerstartData(ReportTarget target, FlowController fc)
    
protected  LayoutControllerstartElement(ReportTarget target)
     This method is called for each newly instantiated layout controller.
public  StringtoString()
    
protected  FlowControllertryRepeatingCommit(FlowController fc)
    

Field Detail
FINISHED
final public static int FINISHED(Code)



FINISHING
final public static int FINISHING(Code)



NOT_STARTED
final public static int NOT_STARTED(Code)



OPENED
final public static int OPENED(Code)



WAITING_FOR_JOIN
final public static int WAITING_FOR_JOIN(Code)




Constructor Detail
ElementLayoutController
protected ElementLayoutController()(Code)




Method Detail
advance
final public LayoutController advance(ReportTarget target) throws DataSourceException, ReportProcessingException, ReportDataFactoryException(Code)
Advances the layout controller to the next state. This method delegates the call to one of the following methods:
Parameters:
  target - the report target that receives generated events. the new layout controller instance representing the new state.
throws:
  DataSourceException - if there was a problem reading data fromthe datasource.
throws:
  ReportProcessingException - if there was a general problem duringthe report processing.
throws:
  ReportDataFactoryException - if a query failed.



clone
public Object clone()(Code)



computeAttributes
protected AttributeMap computeAttributes(FlowController fc, Element element, ReportTarget target) throws DataSourceException(Code)



createPrecomputeInstance
public LayoutController createPrecomputeInstance(FlowController fc)(Code)
Derives a copy of this controller that is suitable to perform a precomputation.
Parameters:
  fc -



finishElement
protected LayoutController finishElement(ReportTarget target) throws ReportProcessingException, DataSourceException, ReportDataFactoryException(Code)
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. the new layout controller instance representing the new state.
throws:
  DataSourceException - if there was a problem reading data fromthe datasource.
throws:
  ReportProcessingException - if there was a general problem during thereport processing.
throws:
  ReportDataFactoryException - if there was an error trying query data.



getAttributeMap
public AttributeMap getAttributeMap()(Code)



getElement
public Element getElement()(Code)



getExpressionsCount
public int getExpressionsCount()(Code)



getFlowController
public FlowController getFlowController()(Code)



getIterationCount
public int getIterationCount()(Code)



getNode
public Object getNode()(Code)



getParent
public LayoutController getParent()(Code)
Retrieves the parent of this layout controller. This allows childs to query their context. the layout controller's parent to null if there is noparent.



getProcessingState
public int getProcessingState()(Code)



handleDefaultEndElement
protected FlowController handleDefaultEndElement(ReportTarget target) throws ReportProcessingException, DataSourceException, ReportDataFactoryException(Code)



initialize
public void initialize(Object node, FlowController flowController, LayoutController parent) throws DataSourceException, ReportDataFactoryException, ReportProcessingException(Code)
Initializes the layout controller. This method is called exactly once. It is the creators responsibility to call this method.

Calling initialize after the first advance must result in a IllegalStateException.
Parameters:
  node - the currently processed object or layout node.
Parameters:
  flowController - the current flow controller.
Parameters:
  parent - the parent layout controller that was responsible forinstantiating this controller.
throws:
  DataSourceException - if there was a problem reading data fromthe datasource.
throws:
  ReportProcessingException - if there was a general problem duringthe report processing.
throws:
  ReportDataFactoryException - if a query failed.




isAdvanceable
public boolean isAdvanceable()(Code)



isPrecomputing
public boolean isPrecomputing()(Code)



performElementPrecomputation
protected FlowController performElementPrecomputation(Expression[] expressions, FlowController fc) throws ReportProcessingException, ReportDataFactoryException, DataSourceException(Code)



processContent
abstract protected LayoutController processContent(ReportTarget target) throws DataSourceException, ReportProcessingException, ReportDataFactoryException(Code)
Processes any content in this element. This method is called when the processing state is 'OPENED'. The returned layout controller will retain the 'OPENED' state as long as there is more content available. Once all content has been processed, the returned layout controller should carry a 'FINISHED' state.
Parameters:
  target - the report target that receives generated events. the new layout controller instance representing the new state.
throws:
  DataSourceException - if there was a problem reading data fromthe datasource.
throws:
  ReportProcessingException - if there was a general problem duringthe report processing.
throws:
  ReportDataFactoryException - if a query failed.



setFlowController
public void setFlowController(FlowController flowController)(Code)



setParent
public void setParent(LayoutController parent)(Code)



setProcessingState
public void setProcessingState(int processingState)(Code)



startData
protected FlowController startData(ReportTarget target, FlowController fc) throws DataSourceException, ReportProcessingException, ReportDataFactoryException(Code)



startElement
protected LayoutController startElement(ReportTarget target) throws DataSourceException, ReportProcessingException, ReportDataFactoryException(Code)
This method is called for each newly instantiated layout controller. The returned layout controller instance should have a processing state of either 'OPEN' or 'FINISHING' depending on whether there is any content or any child nodes to process.
Parameters:
  target - the report target that receives generated events. the new layout controller instance representing the new state.
throws:
  DataSourceException - if there was a problem reading data fromthe datasource.
throws:
  ReportProcessingException - if there was a general problem duringthe report processing.
throws:
  ReportDataFactoryException - if a query failed.



toString
public String toString()(Code)



tryRepeatingCommit
protected FlowController tryRepeatingCommit(FlowController fc) throws DataSourceException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.