1 9 10 package org.jboss.portal.core.theme.render.impl; 11 12 import org.apache.log4j.Logger; 13 import org.jboss.portal.server.WindowContext; 14 import org.jboss.portal.server.output.FragmentResult; 15 import org.jboss.portal.server.theme.render.RenderContext; 16 import org.jboss.portal.server.theme.render.RenderException; 17 import org.jboss.portal.server.theme.render.WindowRenderer; 18 19 import javax.portlet.WindowState; 20 21 29 public class EmptyWindowRenderer 30 implements WindowRenderer 31 { 32 private static Logger log = Logger.getLogger(EmptyWindowRenderer.class); 33 34 37 public void render(RenderContext renderContext, FragmentResult result) throws RenderException 38 { 39 log.debug("render window for portlet : " + result.getTitle()); 40 41 WindowContext windowContext = result.getProducer(); 42 43 renderContext.getDecorationRenderer().render(renderContext, windowContext, result); 44 if (!WindowState.MINIMIZED.equals(windowContext.getWindowState())) 45 { 46 renderContext.getPortletRenderer().render(renderContext, windowContext, result); 47 } 48 } 49 50 53 public void renderStart(RenderContext ctx) 54 { 55 } 56 57 60 public void renderEnd(RenderContext ctx) 61 { 62 } 63 } 64 | Popular Tags |