1 package org.exoplatform.services.portletcontainer.test.portlet; 2 3 import javax.portlet.*; 4 import java.io.IOException ; 5 6 10 11 18 public class PortletToTestStateSupport implements Portlet{ 19 20 public void init(PortletConfig portletConfig) throws PortletException { 21 } 22 23 public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException, IOException { 24 } 25 26 public void render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException { 27 renderResponse.setContentType("text/html"); 29 PortletURL pURL = renderResponse.createRenderURL(); 30 pURL.setWindowState(WindowState.NORMAL); 31 pURL.setWindowState(WindowState.MAXIMIZED); 32 pURL.setWindowState(new WindowState("half-page")); 33 34 pURL.setWindowState(new WindowState("detached")); 35 } 36 37 public void destroy() { 38 } 40 } 41 | Popular Tags |