1 9 10 package org.jboss.portal.core.theme.render.impl; 11 12 import org.jboss.portal.server.WindowContext; 13 import org.jboss.portal.server.output.FragmentResult; 14 import org.jboss.portal.server.theme.render.RenderContext; 15 import org.jboss.portal.server.theme.render.RenderException; 16 import org.jboss.portal.server.theme.render.WindowRenderer; 17 18 import javax.portlet.WindowState; 19 20 27 public class DivWindowRenderer 28 implements WindowRenderer 29 { 30 33 public void render(RenderContext renderContext, FragmentResult result) 34 throws RenderException 35 { 36 renderStart(renderContext); 37 38 WindowContext windowContext = result.getProducer(); 39 40 renderContext.getDecorationRenderer().render(renderContext, windowContext, result); 41 42 if (!WindowState.MINIMIZED.equals(windowContext.getWindowState())) 43 { 44 renderContext.getPortletRenderer().render(renderContext, windowContext, result); 45 } 46 47 renderEnd(renderContext); 48 } 49 50 53 public void renderStart(RenderContext ctx) 54 { 55 ctx.getMarkupFragment().append("<div class='portlet-window'>"); 56 } 57 58 61 public void renderEnd(RenderContext ctx) 62 { 63 ctx.getMarkupFragment().append("</div>"); 64 } 65 } 66 | Popular Tags |