KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > theme > render > Renderer


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9
10 package org.jboss.portal.server.theme.render;
11
12 /**
13  * Generic renderer interface extended by all members of a render set.
14  *
15  * @author <a HREF="mailto:mholzner@novell.com>Martin Holzner</a>
16  * @version $LastChangedRevision$, $LastChangedDate$
17  * @see org.jboss.portal.server.theme.PortalRenderSet
18  */

19 public interface Renderer
20 {
21    /**
22     * Start the render process for this renderer.
23     * <p>This is a convenient way yo open tags, like a table or a div</p>
24     *
25     * @param ctx the render context allowing access to state information of the current render process
26     */

27    void renderStart(RenderContext ctx);
28
29    /**
30     * End the render process for this renderer.
31     * <p>This is a convenient way yo close the tags that where opened by <code>renderStart</code></p>
32     *
33     * @param ctx the render context allowing access to state information of the current render process
34     */

35    void renderEnd(RenderContext ctx);
36 }
37
Popular Tags