KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > form > NodeHandlerSupport


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.form;
14
15 import javax.servlet.http.HttpSession JavaDoc;
16
17 import org.w3c.dom.Element JavaDoc;
18
19 import com.tonbeller.wcf.controller.RequestContext;
20
21 /**
22  * default implementation of a NodeHandler
23  * @author av
24  */

25 public class NodeHandlerSupport implements NodeHandler {
26
27   private XmlComponent xmlComponent;
28   private Element JavaDoc element;
29  
30   public void initialize(RequestContext context, XmlComponent comp, Element JavaDoc element) throws Exception JavaDoc {
31     this.xmlComponent = comp;
32     this.element = element;
33   }
34
35   public void destroy(HttpSession JavaDoc session) throws Exception JavaDoc {
36   }
37  
38   /**
39    * does nothing
40    */

41   public void render(RequestContext context) throws Exception JavaDoc {
42   }
43
44   /**
45    * Returns the element.
46    * @return Element
47    */

48   public Element JavaDoc getElement() {
49     return element;
50   }
51
52   /**
53    * @return
54    */

55   public XmlComponent getXmlComponent() {
56     return xmlComponent;
57   }
58
59
60 }
61
Popular Tags