|
||||||||||
| 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.modules.output.xml.XMLWriter
The XMLWriter is the content creation function used to create the XML content. This implementation does no layouting, the bands and elements are written in the defined order.
The xml writer is intended as simple example on how to write OutputFunctions, the XML-code generated is very simple and easy to understand. If you seek complexer XML-Outputs, have a look at the HTML-Writer, this implementation is able to write XHTML output.
| Field Summary |
| Fields inherited from interface org.jfree.report.function.Expression |
AUTOACTIVATE_PROPERTY |
| Constructor Summary | |
XMLWriter()
Creates a new XMLWriter function. |
|
| Method Summary | |
int |
getDependencyLevel()
The dependency level defines the level of execution for this function. |
java.lang.Object |
getValue()
Return the self reference of this writer. |
java.io.Writer |
getWriter()
returns the assigned writer for the output. |
void |
groupFinished(ReportEvent event)
Writes the footer of the current group. |
void |
groupStarted(ReportEvent event)
Writes the header of the current group. |
void |
itemsAdvanced(ReportEvent event)
Writes the itemband. |
void |
itemsFinished(ReportEvent event)
Closes the itemband section. |
void |
itemsStarted(ReportEvent event)
Starts the itembands section. |
void |
reportFinished(ReportEvent event)
Writes the report footer. |
void |
reportStarted(ReportEvent event)
Writes the report header. |
void |
setDependencyLevel(int deplevel)
Overrides the depency level. |
void |
setWriter(java.io.Writer w)
Defines the writer for the XML-output. |
| Methods inherited from class org.jfree.report.function.AbstractFunction |
clone, getDataRow, getInstance, getName, getProperties, getProperty, getProperty, initialize, isActive, reportDone, reportInitialized, setDataRow, setName, setProperties, setProperty |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLWriter()
| Method Detail |
public java.io.Writer getWriter()
public void setWriter(java.io.Writer w)
w - the writer.public void reportStarted(ReportEvent event)
reportStarted in interface ReportListenerreportStarted in class AbstractFunctionevent - the event.public void reportFinished(ReportEvent event)
reportFinished in interface ReportListenerreportFinished in class AbstractFunctionevent - the event.public void groupStarted(ReportEvent event)
groupStarted in interface ReportListenergroupStarted in class AbstractFunctionevent - the event.public void groupFinished(ReportEvent event)
groupFinished in interface ReportListenergroupFinished in class AbstractFunctionevent - the event.public void itemsAdvanced(ReportEvent event)
itemsAdvanced in interface ReportListeneritemsAdvanced in class AbstractFunctionevent - 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 itemsFinished(ReportEvent event)
The itemBand is finished, the report starts to close open groups.
itemsFinished in interface ReportListeneritemsFinished in class AbstractFunctionevent - The event.public java.lang.Object getValue()
public int getDependencyLevel()
PageLayouter functions override the default behaviour an place them self at depency level -1, an so before any userdefined function.
getDependencyLevel in interface ExpressiongetDependencyLevel in class AbstractFunctionpublic void setDependencyLevel(int deplevel)
setDependencyLevel in interface ExpressionsetDependencyLevel in class AbstractFunctiondeplevel - the new depency level.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||