com.instantbank.lettertemplate.categories.web
Class CategoryTranslator

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

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

Letter Categories usecase: helper class for CategoryMain.jsp

Author:
Instant-bank (Consuelo Franky)
See Also:
Serialized Form

Field Summary
private  java.lang.String[] code
           
private  Debug debug
           
private  java.lang.String[] name
           
private  int nlLength
           
 
Constructor Summary
CategoryTranslator()
           
 
Method Summary
 java.lang.String getCategoriesArray()
          extends the onLoad() javaScript method initializing itemsArrays according to input data of the jsp
 void setData(javax.servlet.http.HttpServletRequest request)
          gets categories 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

nlLength

private int nlLength

debug

private Debug debug
Constructor Detail

CategoryTranslator

public CategoryTranslator()
Method Detail

setData

public void setData(javax.servlet.http.HttpServletRequest request)
gets categories list from request and creates input data for the jsp setting values of code and name Strings
Parameters:
request - of MainServlet

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