|
||||||||||
| 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.csv.CSVWriter
The CSV Writer is the content creation function used to create the CSV content. This implementation does no layouting, the DataRow's raw data is written to the supplied writer.
| Field Summary |
| Fields inherited from interface org.jfree.report.function.Expression |
AUTOACTIVATE_PROPERTY |
| Constructor Summary | |
CSVWriter()
DefaulConstructor. |
|
| Method Summary | |
int |
getDependencyLevel()
The dependency level defines the level of execution for this function. |
java.lang.String |
getSeparator()
Gets the separator which is used to separate columns in a row. |
java.lang.Object |
getValue()
Return a selfreference of this CSVWriter. |
java.io.Writer |
getWriter()
Returns the writer used to output the generated data. |
void |
groupFinished(ReportEvent event)
Writes the GroupFooter of the active group. |
void |
groupStarted(ReportEvent event)
Writes the GroupHeader of the current group. |
boolean |
isWriteDataRowNames()
Returns whether to print dataRow column names as header. |
void |
itemsAdvanced(ReportEvent event)
Writes the current ItemBand. |
void |
reportFinished(ReportEvent event)
Writes the ReportFooter. |
void |
reportStarted(ReportEvent event)
Writes the ReportHeader and (if defined) the dataRow names. |
void |
setDependencyLevel(int deplevel)
Overrides the depency level. |
void |
setSeparator(java.lang.String separator)
Defines the separator, which is used to separate columns in a row. |
void |
setWriteDataRowNames(boolean writeDataRowNames)
Defines, whether to print column names in the first row. |
void |
setWriter(java.io.Writer w)
Defines the writer which should be used to output the generated data. |
| Methods inherited from class org.jfree.report.function.AbstractFunction |
clone, getDataRow, getInstance, getName, getProperties, getProperty, getProperty, initialize, isActive, itemsFinished, itemsStarted, 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 CSVWriter()
| Method Detail |
public boolean isWriteDataRowNames()
public void setWriteDataRowNames(boolean writeDataRowNames)
writeDataRowNames - true, if column names are printed, false otherwisepublic java.io.Writer getWriter()
public void setWriter(java.io.Writer w)
w - the writerpublic void setSeparator(java.lang.String separator)
separator - the separator string, never null.
java.lang.NullPointerException - if the separator is null.
java.lang.IllegalArgumentException - if the separator is an empty string.public java.lang.String getSeparator()
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 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 | |||||||||