|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.report.targets.table.TableProcessor
The TableProcessor is the abstract base class for all table based output targets. It handles the initialisation of the report writer and starts and manages the report process.
Implementing classes should supply a table producer by implementing the createProducer method.
Constructor Summary | |
TableProcessor(JFreeReport report)
Creates a new TableProcessor. |
Method Summary | |
protected void |
configure()
Copies all report configuration properties which match the configuration prefix of this table processor into the property set of this processor. |
protected abstract TableProducer |
createProducer(boolean dummy)
Creates a TableProducer. |
protected java.util.Properties |
getProperties()
Gets the internal properties storage. |
java.lang.Object |
getProperty(java.lang.String property)
Queries the property named with property . |
java.lang.Object |
getProperty(java.lang.String property,
java.lang.Object defaultValue)
Queries the property named with property . |
protected java.util.Iterator |
getPropertyNames()
Returns an enumeration of the property names. |
protected JFreeReport |
getReport()
Returns the private copy of the used report. |
protected abstract java.lang.String |
getReportConfigurationPrefix()
Gets the report configuration prefix for that processor. |
boolean |
isStrictLayout()
Returns the strict layout flag. |
void |
processReport()
Processes the report. |
void |
setProperty(java.lang.String property,
java.lang.Object value)
Defines a property for this output target. |
void |
setStrictLayout(boolean strictLayout)
Defines the strict layout flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableProcessor(JFreeReport report) throws ReportProcessingException, FunctionInitializeException
report
- the report that should be processed.
ReportProcessingException
- if the report initialization failed
FunctionInitializeException
- if the table writer initialization failed.Method Detail |
public boolean isStrictLayout()
TableGrid.isStrict()
public void setStrictLayout(boolean strictLayout)
strictLayout
- true, if a stricter layouting algorithm should be used, false otherwise.TableGrid.isStrict()
protected JFreeReport getReport()
public void processReport() throws ReportProcessingException
ReportProcessingException
- if the report processing failed.protected abstract TableProducer createProducer(boolean dummy)
dummy
- true, if dummy mode is enabled, and no writing should be done, false otherwise.
public void setProperty(java.lang.String property, java.lang.Object value)
property
- the name of the property to set (null
not permitted).value
- the value of the property. If the value is null
, the property is
removed from the output target.public java.lang.Object getProperty(java.lang.String property)
property
. If the property is not found,
null
is returned.
property
- the name of the property to be queried
java.lang.NullPointerException
- if property
is nullpublic java.lang.Object getProperty(java.lang.String property, java.lang.Object defaultValue)
property
. If the property is not found, the
default value is returned.
property
- the name of the property to be querieddefaultValue
- the defaultvalue returned if there is no such property
java.lang.NullPointerException
- if property
is nullprotected java.util.Iterator getPropertyNames()
protected java.util.Properties getProperties()
protected abstract java.lang.String getReportConfigurationPrefix()
protected void configure()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |