com.instantbank.lettertemplate.previewPrint.web
Class PreviewPrintTranslator

java.lang.Object
  |
  +--com.instantbank.lettertemplate.previewPrint.web.PreviewPrintTranslator
All Implemented Interfaces:
java.io.Serializable

public class PreviewPrintTranslator
extends java.lang.Object
implements java.io.Serializable

Preview/Print Letter usecase: helper class for previewPrintMain.jsp

Author:
Instant-bank (Jorge Cardenas)
See Also:
Serialized Form

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

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

debug

private Debug debug
Constructor Detail

PreviewPrintTranslator

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