com.ontimize.util.templates
Class PdfTemplateGenerator
java.lang.Object
com.ontimize.util.templates.AbstractTemplateGenerator
com.ontimize.util.templates.PdfTemplateGenerator
- All Implemented Interfaces:
- TemplateGenerator
- public class PdfTemplateGenerator
- extends AbstractTemplateGenerator
- implements TemplateGenerator
|
Method Summary |
java.io.File |
createTemplate(java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages)
Template creation in PDF format is not supported |
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.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 |
setShowTemplate(boolean show)
Sets the value of the variable show. |
| Methods inherited from class com.ontimize.util.templates.AbstractTemplateGenerator |
calculateRecordCount, containsHashtableValue, createFileFieldData, createImageDataFile, createTableDataDefinition, createTableDataDefinition, createTableDataFile, createTableDataFile, exportFieldData, exportFieldData, exportTableData, fillDocument, fillDocument, fillDocument, getKeysOrder, getScreenPoints, parseNumber, savePngImageFile, setCreateLabelsInTemplate, setDateFormat, setNumberFormat, transformFieldData, transformFieldData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
showTemplate
protected boolean showTemplate
PdfTemplateGenerator
public PdfTemplateGenerator()
createTemplate
public java.io.File createTemplate(java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages)
- Template creation in PDF format is not supported
- Specified by:
createTemplate in interface TemplateGenerator
- Parameters:
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)
fillDocument
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
- Specified by:
fillDocument in interface TemplateGenerator
- Throws:
java.lang.Exception
setShowTemplate
public void setShowTemplate(boolean show)
- Description copied from interface:
TemplateGenerator
- Sets the value of the variable show. When this variable takes the value
"true", the template is shown to the user. Elsewhere, the template will
not be shown
- Specified by:
setShowTemplate in interface TemplateGenerator
- Parameters:
show -
queryTemplateFields
public java.util.List queryTemplateFields(java.lang.String template)
throws java.lang.Exception
- Description copied from interface:
TemplateGenerator
- Creates a list with all data fields included in the template
- Specified by:
queryTemplateFields in interface TemplateGenerator
- Parameters:
template - Template to query
- Returns:
- List with all data fields included in the template
- Throws:
java.lang.Exception
queryTemplateFields
public java.util.List queryTemplateFields(java.io.File template)
throws java.lang.Exception
- Description copied from interface:
TemplateGenerator
- Creates a list with all data fields included in the template
- Specified by:
queryTemplateFields in interface TemplateGenerator
- Parameters:
template - Template to query
- Returns:
- List with all data fields included in the template
- Throws:
java.lang.Exception