|
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.TemplateUtils
| Field Summary | |
protected static TemplateGenerator |
ooTemplateGenerator
|
protected static TemplateGenerator |
pdfTemplateGenerator
|
protected static java.text.SimpleDateFormat |
sdf
|
static int |
TEMPLATE_TYPE_DOC
|
static int |
TEMPLATE_TYPE_ODT
|
static int |
TEMPLATE_TYPE_PDF
|
protected static TemplateGenerator |
wordTemplateGenerator
|
| Constructor Summary | |
TemplateUtils()
|
|
| Method Summary | |
static java.io.File |
createTemplate(Form form,
int templateType)
Create a template of specified type with all fields, tables and images of the form |
static void |
fillTemplate(java.io.File template,
Form form)
Fill the specified template with current values in the form |
static java.util.Hashtable |
getFieldsValues(Form form)
Get a Hashtable with the values of all fields in the form |
static java.util.Hashtable |
getImagesValues(Form form,
boolean insertEmptyImages)
Get a Hashtable with the values of all Image fields in the form |
static java.util.Hashtable |
getTablesValues(Form form)
Get a Hashtable with the values of all tables in the form key - table entity name value - EntityResult with the table value |
static java.util.Hashtable |
getTemplateFields(Form form)
Get a Hashtable with the names of form's fields and their translations key - Field name value - key translation |
static TemplateGenerator |
getTemplateGenerator(int templateType)
Get the TemplateGenerator of the specified type |
protected static java.util.Hashtable |
getTemplateHashtableTranslation(java.util.List attrs,
java.util.ResourceBundle bundle)
|
static java.util.Hashtable |
getTemplateImages(Form form)
Get a Hashtable with all attributes of ImageField in the form and their translations |
static java.util.Hashtable |
getTemplateTables(Form form)
Get the list of tables to insert in the template key - Table entity value - Hashtable with the names of the visible cols and their translations |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TEMPLATE_TYPE_ODT
public static final int TEMPLATE_TYPE_DOC
public static final int TEMPLATE_TYPE_PDF
protected static TemplateGenerator wordTemplateGenerator
protected static TemplateGenerator ooTemplateGenerator
protected static TemplateGenerator pdfTemplateGenerator
protected static java.text.SimpleDateFormat sdf
| Constructor Detail |
public TemplateUtils()
| Method Detail |
public static java.io.File createTemplate(Form form,
int templateType)
form - templateType - (TEMPLATE_TYPE_DOC,TEMPLATE_TYPE_PDF, TEMPLATE_TYPE_ODT)
public static TemplateGenerator getTemplateGenerator(int templateType)
templateType -
public static java.util.Hashtable getTemplateFields(Form form)
form -
public static java.util.Hashtable getTemplateTables(Form form)
form -
public static java.util.Hashtable getTemplateImages(Form form)
form -
protected static java.util.Hashtable getTemplateHashtableTranslation(java.util.List attrs,
java.util.ResourceBundle bundle)
public static void fillTemplate(java.io.File template,
Form form)
template - form - public static java.util.Hashtable getFieldsValues(Form form)
form -
public static java.util.Hashtable getTablesValues(Form form)
form -
public static java.util.Hashtable getImagesValues(Form form,
boolean insertEmptyImages)
form - insertEmptyImages -
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||