Ontimize 5.2072EN

com.ontimize.util.templates
Class PdfTemplateGenerator

java.lang.Object
  extended bycom.ontimize.util.templates.AbstractTemplateGenerator
      extended bycom.ontimize.util.templates.PdfTemplateGenerator
All Implemented Interfaces:
TemplateGenerator

public class PdfTemplateGenerator
extends AbstractTemplateGenerator
implements TemplateGenerator


Field Summary
protected  boolean showTemplate
           
 
Fields inherited from class com.ontimize.util.templates.AbstractTemplateGenerator
createLabelsInTemplate, dateFormat, DEBUG, numberFormat
 
Constructor Summary
PdfTemplateGenerator()
           
 
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
 
Methods inherited from interface com.ontimize.util.templates.TemplateGenerator
fillDocument, fillDocument, fillDocument, setCreateLabelsInTemplate, setDateFormat, setNumberFormat
 

Field Detail

showTemplate

protected boolean showTemplate
Constructor Detail

PdfTemplateGenerator

public PdfTemplateGenerator()
Method Detail

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 template
valuesTable - : 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

Ontimize