public class PdfTemplateGenerator extends AbstractTemplateGenerator implements TemplateGenerator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
showTemplate |
createLabelsInTemplate, dateFormat, DEBUG, numberFormat| Constructor and Description |
|---|
PdfTemplateGenerator() |
| Modifier and Type | Method and Description |
|---|---|
File |
createTemplate(Hashtable fieldValues,
Hashtable valuesTable,
Hashtable valuesImages)
Template creation in PDF format is not supported
|
File |
fillDocument(InputStream input,
String nameFile,
Hashtable fieldValues,
Hashtable valuesTable,
Hashtable valuesImages,
Hashtable valuesPivotTable) |
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 |
setShowTemplate(boolean show)
Sets the value of the variable show.
|
calculateRecordCount, containsHashtableValue, createFileFieldData, createImageDataFile, createTableDataDefinition, createTableDataDefinition, createTableDataFile, createTableDataFile, exportFieldData, exportFieldData, exportTableData, fillDocument, fillDocument, fillDocument, getKeysOrder, getScreenPoints, parseNumber, savePngImageFile, setCreateLabelsInTemplate, setDateFormat, setNumberFormat, transformFieldData, transformFieldDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfillDocument, fillDocument, fillDocument, setCreateLabelsInTemplate, setDateFormat, setNumberFormatpublic File createTemplate(Hashtable fieldValues, Hashtable valuesTable, Hashtable valuesImages)
createTemplate in interface 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)public File fillDocument(InputStream input, String nameFile, Hashtable fieldValues, Hashtable valuesTable, Hashtable valuesImages, Hashtable valuesPivotTable) throws Exception
fillDocument in interface TemplateGeneratorExceptionpublic void setShowTemplate(boolean show)
TemplateGeneratorsetShowTemplate in interface TemplateGeneratorpublic List queryTemplateFields(String template) throws Exception
TemplateGeneratorqueryTemplateFields in interface TemplateGeneratortemplate - Template to queryExceptionpublic List queryTemplateFields(File template) throws Exception
TemplateGeneratorqueryTemplateFields in interface TemplateGeneratortemplate - Template to queryExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.