KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > template > TEEventDistributor


1 package de.webman.template;
2
3 import com.teamkonzept.webman.*;
4 import com.teamkonzept.webman.mainint.*;
5 import com.teamkonzept.webman.mainint.events.*;
6 import com.teamkonzept.web.*;
7 import com.teamkonzept.lib.*;
8 import de.webman.template.eventhandler.*;
9
10 /**
11  * Verteiler für den Kontext TE
12  *
13  * @author $Author: alex $
14  * @version $Revision: 1.2 $
15 */

16 public class TEEventDistributor extends CachedEventDistributor
17 {
18     public TEEventDistributor()
19     {
20         addEventHandler(EmptyEventHandler.getInstance()); // displays an empty page
21
addEventHandler(TEDeleteHandler.getInstance());
22         addEventHandler(TEEditHandler.getInstance());
23         addEventHandler(TENewHandler.getInstance());
24         addEventHandler(TECopyHandler.getInstance());
25         addEventHandler(TERenameHandler.getInstance());
26         addEventHandler(TESaveHandler.getInstance());
27         addEventHandler(TESaveTextHandler.getInstance());
28         addEventHandler(TEShowlistHandler.getInstance());
29         addEventHandler(TEStartHandler.getInstance());
30         addEventHandler(TEUpdateHandler.getInstance());
31         addEventHandler(TEInfoHandler.getInstance());
32     }
33
34     public boolean isHandler(TKEvent evt)
35     {
36         return evt.getName().startsWith("TE");
37     }
38 }
39
Popular Tags