|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.embedded.webserver.templates.TemplateManager
Title: OpenMobileIS project source
Description: Manage pattern (templates) for HTML forms used by the PDA web server
It is based on singleton model. The path gives the location of the patterns (should terminate by a file separator). The API getHTMLFile (patternName, variables) allow to get the HTML file from a pattern and a list of variables. The default implementation use the freemarker template manager. See freemarker for more information. Inside the pattern, the variables are tagged by ${}.
Method Summary | |
static TemplateManager |
getManager()
|
TemplateManagerDelegate |
getRegisteredTemplateDelegate()
|
TemplateModelRoot |
getTemplateModelRoot()
initialize template structure for this request. |
protected void |
init()
init template and cache management. |
static void |
registerTemplateDelegate(TemplateManagerDelegate indelegate)
|
void |
sendResponse(java.lang.String templateName,
TemplateModelRoot modelRoot,
HttpServletResponse res)
|
void |
updateTemplateWithNavigationBarData(java.lang.Object modelRoot,
java.lang.String data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TemplateManager getManager()
public static void registerTemplateDelegate(TemplateManagerDelegate indelegate)
public TemplateManagerDelegate getRegisteredTemplateDelegate()
protected void init()
public void updateTemplateWithNavigationBarData(java.lang.Object modelRoot, java.lang.String data)
public TemplateModelRoot getTemplateModelRoot()
public void sendResponse(java.lang.String templateName, TemplateModelRoot modelRoot, HttpServletResponse res) throws java.io.IOException, TemplateNotFoundException
java.io.IOException
TemplateNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |