KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > tree > RequestListeningNodeRenderer


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.tree;
14
15 import com.tonbeller.wcf.component.RenderListener;
16 import com.tonbeller.wcf.controller.RequestListener;
17
18 /**
19  * A NodeRenderer that is a RequestListener too. The tree will install
20  * this NodeRenderer as a default listener (i.e. all Requests are forwareded to this).
21  * <p>
22  * usage pattern:
23  * <pre>
24  * MyRequestListeningNodeRenderer extends DispatcherSupport implements RequestListeningNodeRenderer {
25  * void startRendering() {
26  * // clear all RequestListeners
27  * super.clear();
28  * }
29  * Element renderNode(..) {
30  * // create and add RequestListeners that responds to buttons at the node
31  * }
32  * void stopRendering() {
33  * // any cleanup here
34  * }
35  *
36  * @author av
37  */

38 public interface RequestListeningNodeRenderer extends NodeRenderer, RequestListener, RenderListener {
39   
40 }
41
Popular Tags