|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.templates.AbstractTemplateGenerator
com.ontimize.util.templates.ODFTemplateGenerator
Create ODF (Open Document Format) templates (with or without data). This class uses JooReports library and its dependencies. More information in: http://jooreports.sourceforge.net
| Field Summary | |
static boolean |
DEBUG
|
protected boolean |
showTableTotals
|
protected boolean |
showTemplate
|
| Fields inherited from class com.ontimize.util.templates.AbstractTemplateGenerator |
createLabelsInTemplate, dateFormat, numberFormat |
| Constructor Summary | |
ODFTemplateGenerator()
|
|
| Method Summary | |
static boolean |
checkLibraries()
Check if JOOReports jars are avaliable. |
java.io.File |
createTemplate(java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages)
Creates an empty template. |
java.io.File |
fillDocument(java.io.InputStream input,
java.lang.String nameFile,
java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages,
java.util.Hashtable valuesPivotTable)
|
java.io.File |
fillDocument(java.lang.String resource,
java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages,
java.util.Hashtable valuesPivotTable)
|
protected void |
log(java.lang.String log)
|
java.util.List |
queryTemplateFields(java.io.File template)
Creates a list with all data fields included in the template |
java.util.List |
queryTemplateFields(java.lang.String template)
Creates a list with all data fields included in the template |
void |
setShowTableTotals(boolean showTableTotals)
If true, the table shows a new row with the column totals. |
void |
setShowTemplate(boolean show)
Sets the value of the variable show. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean DEBUG
protected boolean showTableTotals
protected boolean showTemplate
| Constructor Detail |
public ODFTemplateGenerator()
| Method Detail |
protected void log(java.lang.String log)
public static boolean checkLibraries()
public java.io.File createTemplate(java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages)
throws java.lang.Exception
TemplateGenerator
fieldValues - :
This object contains the data fields attributes and labels to
show in the templatevaluesTable - :
The object contains the table information to insert in the
template. This map must have the table entity name as key and
the value must be other Hashtable with the columns attributes
and names to show (column name - column label)
java.lang.Exception
public java.io.File fillDocument(java.lang.String resource,
java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages,
java.util.Hashtable valuesPivotTable)
throws java.lang.Exception
fillDocument in interface TemplateGeneratorfillDocument in class AbstractTemplateGeneratorjava.lang.Exception
public java.io.File fillDocument(java.io.InputStream input,
java.lang.String nameFile,
java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages,
java.util.Hashtable valuesPivotTable)
throws java.lang.Exception
java.lang.Exceptionpublic void setShowTableTotals(boolean showTableTotals)
public void setShowTemplate(boolean show)
TemplateGenerator
show -
public java.util.List queryTemplateFields(java.lang.String template)
throws java.lang.Exception
TemplateGenerator
template - Template to query
java.lang.Exception
public java.util.List queryTemplateFields(java.io.File template)
throws java.lang.Exception
TemplateGenerator
template - Template to query
java.lang.Exception
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||