1 20 21 package com.methodhead.shim; 22 23 import javax.servlet.http.HttpServletRequest ; 24 import javax.servlet.http.HttpServletResponse ; 25 import javax.servlet.jsp.JspWriter ; 26 import org.apache.struts.action.ActionMapping; 27 import org.apache.struts.action.ActionForward; 28 import org.apache.struts.action.DynaActionForm; 29 import java.io.IOException ; 30 31 34 public interface Module { 35 36 38 40 42 45 public String getName(); 46 47 51 public void init( 52 Page page, 53 String panel ); 54 55 63 public void create(); 64 65 69 public boolean isConfigurable(); 70 71 74 public ActionForward configure( 75 ActionMapping mapping, 76 DynaActionForm form, 77 HttpServletRequest request, 78 HttpServletResponse response ); 79 80 84 public boolean isEditable(); 85 86 89 public void update( String text ); 90 91 94 public void display( 95 HttpServletRequest request, 96 HttpServletResponse response, 97 JspWriter out ) 98 throws 99 IOException ; 100 101 104 public void destroy(); 105 106 109 public void copyTo( 110 Page page ); 111 } 112 | Popular Tags |