|
||||||||||
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 ReportListener
reportStarted
in class AbstractFunction
event
- the event.public void reportFinished(ReportEvent event)
reportFinished
in interface ReportListener
reportFinished
in class AbstractFunction
event
- the event.public void groupStarted(ReportEvent event)
groupStarted
in interface ReportListener
groupStarted
in class AbstractFunction
event
- the event.public void groupFinished(ReportEvent event)
groupFinished
in interface ReportListener
groupFinished
in class AbstractFunction
event
- the event.public void itemsAdvanced(ReportEvent event)
itemsAdvanced
in interface ReportListener
itemsAdvanced
in class AbstractFunction
event
- the event.public void itemsStarted(ReportEvent event)
The next events will be itemsAdvanced events until the itemsFinished event is raised.
itemsStarted
in interface ReportListener
itemsStarted
in class AbstractFunction
event
- The event.public void itemsFinished(ReportEvent event)
The itemBand is finished, the report starts to close open groups.
itemsFinished
in interface ReportListener
itemsFinished
in class AbstractFunction
event
- 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 Expression
getDependencyLevel
in class AbstractFunction
public void setDependencyLevel(int deplevel)
setDependencyLevel
in interface Expression
setDependencyLevel
in class AbstractFunction
deplevel
- the new depency level.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |