|
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.WordTemplateGenerator
| Field Summary | |
static boolean |
deleteBookmarks
Variable to use when you want to keep the boorkmarks in the document after write the data in the template. |
static boolean |
highlightBookmarksInTemplate
Variable used to highlight the bookmarks when a new template is created. |
protected boolean |
showTemplate
|
| Fields inherited from class com.ontimize.util.templates.AbstractTemplateGenerator |
createLabelsInTemplate, dateFormat, numberFormat |
| Constructor Summary | |
WordTemplateGenerator()
|
|
| Method Summary | |
protected static void |
addFieldGroupToDataString(java.util.Hashtable group,
java.lang.StringBuffer buffer,
java.text.DateFormat df,
java.lang.String delimiter)
|
protected static java.lang.String |
createFieldDataString(java.util.Hashtable data,
java.lang.String delimiter,
java.text.DateFormat df)
|
protected static java.lang.String |
createFieldsInGroups(java.util.Hashtable data,
java.lang.String delimiter,
java.lang.String groupDelimiter,
java.text.DateFormat df)
Create an String with the information of the fields to put in the template. |
java.io.File |
createTemplate(java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages)
The WordTemplateGenerator adds the possibility to put the fields
in the template in a specified order. |
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 |
setScriptFillDocPath(java.lang.String path)
Sets the file path for the fill document script. |
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 highlightBookmarksInTemplate
public static boolean deleteBookmarks
protected boolean showTemplate
| Constructor Detail |
public WordTemplateGenerator()
| Method Detail |
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.Exception
public java.util.List queryTemplateFields(java.io.File template)
throws java.lang.Exception
TemplateGenerator
template - Template to query
java.lang.Exception
public java.util.List queryTemplateFields(java.lang.String template)
throws java.lang.Exception
TemplateGenerator
template - Template to query
java.lang.Exceptionpublic void setScriptFillDocPath(java.lang.String path)
path - public void setShowTemplate(boolean show)
TemplateGenerator
show -
public java.io.File createTemplate(java.util.Hashtable fieldValues,
java.util.Hashtable valuesTable,
java.util.Hashtable valuesImages)
WordTemplateGenerator adds the possibility to put the fields
in the template in a specified order.fieldValues can be a EntityResult
object, and use the EntityResult.setColumnOrder(List) method to
specified the order of the fields in the template.fieldValues parameter is a Hashtable (or
EntityResult) then the fields in this hashtable will be in a group in the
template and the title will be the key of this hashtable in the parameter
fieldValues
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)
protected static java.lang.String createFieldDataString(java.util.Hashtable data,
java.lang.String delimiter,
java.text.DateFormat df)
protected static java.lang.String createFieldsInGroups(java.util.Hashtable data,
java.lang.String delimiter,
java.lang.String groupDelimiter,
java.text.DateFormat df)
data - delimiter - groupDelimiter - df -
protected static void addFieldGroupToDataString(java.util.Hashtable group,
java.lang.StringBuffer buffer,
java.text.DateFormat df,
java.lang.String delimiter)
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||