KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > component > Component


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.component;
14
15 import java.util.Map JavaDoc;
16
17 import com.tonbeller.wcf.controller.RequestListener;
18
19
20 /**
21  * A Component is created by a ComponentTag and stored into the users Session.
22  * A RenderTag calls its render() method that produces a DOM. The DOM is then
23  * rendered via a xsl stylesheet.
24  * @author av
25  */

26 public interface Component extends RequestListener, Renderable, FormListener, Visible, LifeCycle {
27   /**
28    * returns the parent component as specified by initialize() or null, if
29    * this is the root component
30    * @return
31    */

32   Component getParent();
33
34   /**
35    * show another jsp
36    */

37   void setNextView(String JavaDoc uri);
38   
39   /**
40    * @param httpParams map of http parameters that may identify a RequestListener of this component
41    * @return true if this component is listening to a http request with <code>httpParams</code>
42    */

43   boolean isListeningTo(Map JavaDoc httpParams);
44 }
45
Popular Tags