com.instantbank.lettertemplate.templates.web
Class TemplatesTranslator
java.lang.Object
|
+--com.instantbank.lettertemplate.templates.web.TemplatesTranslator
- All Implemented Interfaces:
- java.io.Serializable
- public class TemplatesTranslator
- extends java.lang.Object
- implements java.io.Serializable
Letter Templates usecase: helper class for TemplateMain.jsp
- Author:
- Instant-bank (Jorge Cardenas)
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getCategoriesArray()
extends the onLoad() javaScript method initializing itemsArrays according
to input data of the jsp |
java.lang.String |
getTemplatesArray()
extends the onLoad() javaScript method initializing itemsArrays according
to input data of the jsp |
void |
setData(javax.servlet.http.HttpServletRequest request)
gets templates list from request and creates input data for the jsp
setting values of code and name Strings |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
code
private java.lang.String[] code
name
private java.lang.String[] name
codetemplate
private java.lang.String[] codetemplate
category
private java.lang.String[] category
printtype
private java.lang.String[] printtype
nametempl
private java.lang.String[] nametempl
nlLengthT
private int nlLengthT
nlLengthC
private int nlLengthC
debug
private Debug debug
TemplatesTranslator
public TemplatesTranslator()
setData
public void setData(javax.servlet.http.HttpServletRequest request)
- gets templates list from request and creates input data for the jsp
setting values of code and name Strings
- Parameters:
request
- of MainServlet
getTemplatesArray
public java.lang.String getTemplatesArray()
- extends the onLoad() javaScript method initializing itemsArrays according
to input data of the jsp
- Returns:
- String to append to onLoad()
getCategoriesArray
public java.lang.String getCategoriesArray()
- extends the onLoad() javaScript method initializing itemsArrays according
to input data of the jsp
- Returns:
- String to append to onLoad()