public class ODFTemplateGenerator extends AbstractTemplateGenerator
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
protected boolean |
showTableTotals |
protected boolean |
showTemplate |
createLabelsInTemplate, dateFormat, numberFormat| Constructor and Description |
|---|
ODFTemplateGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkLibraries()
Check if JOOReports jars are avaliable.
|
File |
createTemplate(Hashtable fieldValues,
Hashtable valuesTable,
Hashtable valuesImages)
Creates an empty template.
|
File |
fillDocument(InputStream input,
String nameFile,
Hashtable fieldValues,
Hashtable valuesTable,
Hashtable valuesImages,
Hashtable valuesPivotTable) |
File |
fillDocument(String resource,
Hashtable fieldValues,
Hashtable valuesTable,
Hashtable valuesImages,
Hashtable valuesPivotTable) |
protected void |
log(String log) |
List |
queryTemplateFields(File template)
Creates a list with all data fields included in the template
|
List |
queryTemplateFields(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.
|
calculateRecordCount, containsHashtableValue, createFileFieldData, createImageDataFile, createTableDataDefinition, createTableDataDefinition, createTableDataFile, createTableDataFile, exportFieldData, exportFieldData, exportTableData, fillDocument, fillDocument, getKeysOrder, getScreenPoints, parseNumber, savePngImageFile, setCreateLabelsInTemplate, setDateFormat, setNumberFormat, transformFieldData, transformFieldDatapublic static boolean DEBUG
protected boolean showTableTotals
protected boolean showTemplate
protected void log(String log)
public static boolean checkLibraries()
public File createTemplate(Hashtable fieldValues, Hashtable valuesTable, Hashtable valuesImages) throws Exception
TemplateGeneratorfieldValues - : 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)valuesImages - : The object contains information about the image fields which
owns the form. This map contains the name of the image field
(value) and its attribute (key)Exceptionpublic File fillDocument(String resource, Hashtable fieldValues, Hashtable valuesTable, Hashtable valuesImages, Hashtable valuesPivotTable) throws Exception
fillDocument in interface TemplateGeneratorfillDocument in class AbstractTemplateGeneratorExceptionpublic File fillDocument(InputStream input, String nameFile, Hashtable fieldValues, Hashtable valuesTable, Hashtable valuesImages, Hashtable valuesPivotTable) throws Exception
Exceptionpublic void setShowTableTotals(boolean showTableTotals)
public void setShowTemplate(boolean show)
TemplateGeneratorpublic List queryTemplateFields(String template) throws Exception
TemplateGeneratortemplate - Template to queryExceptionpublic List queryTemplateFields(File template) throws Exception
TemplateGeneratortemplate - Template to queryExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.