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

Field Summary
private  java.lang.String[] category
           
private  java.lang.String[] code
           
private  java.lang.String[] codetemplate
           
private  Debug debug
           
private  java.lang.String[] name
           
private  java.lang.String[] nametempl
           
private  int nlLengthC
           
private  int nlLengthT
           
private  java.lang.String[] printtype
           
 
Constructor Summary
TemplatesTranslator()
           
 
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
 

Field Detail

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
Constructor Detail

TemplatesTranslator

public TemplatesTranslator()
Method Detail

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()