1 31 32 package org.opencms.workplace.list; 33 34 import org.opencms.jsp.CmsJspActionElement; 35 import org.opencms.workplace.CmsDialog; 36 37 import javax.servlet.http.HttpServletRequest ; 38 import javax.servlet.http.HttpServletResponse ; 39 import javax.servlet.jsp.PageContext ; 40 41 50 public class CmsListCsvExportDialog extends CmsDialog { 51 52 53 public static final String PARAM_LISTCLASS = "listclass"; 54 55 56 private String m_paramListclass; 57 58 63 public CmsListCsvExportDialog(CmsJspActionElement jsp) { 64 65 super(jsp); 66 } 67 68 75 public String generateCsv() throws ClassNotFoundException { 76 77 CmsHtmlList list = A_CmsListDialog.getListObject(Class.forName(getParamListclass()), getSettings()); 78 return list.listCsv(this); 79 } 80 81 88 public CmsListCsvExportDialog(PageContext context, HttpServletRequest req, HttpServletResponse res) { 89 90 this(new CmsJspActionElement(context, req, res)); 91 } 92 93 94 99 public String getParamListclass() { 100 101 return m_paramListclass; 102 } 103 104 105 110 public void setParamListclass(String listclass) { 111 112 m_paramListclass = listclass; 113 } 114 115 } | Popular Tags |