KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > template > eventhandler > TEStartHandler


1 package de.webman.template.eventhandler;
2
3 import com.teamkonzept.webman.mainint.events.*;
4 import com.teamkonzept.webman.mainint.*;
5 import com.teamkonzept.webman.*;
6 import com.teamkonzept.web.*;
7 import com.teamkonzept.lib.*;
8
9 /**
10  * Baut das Frameset auf (vertikal, Tmpl: f_te.tmpl)
11  *
12  *
13  * @author $Author: alex $
14  * @version $Revision: 1.2 $
15  */

16 public class TEStartHandler extends DefaultEventHandler implements FrameConstants
17 {
18      private TEStartHandler()
19     {}
20     
21     private static TEStartHandler instance = new TEStartHandler();
22     
23     public static TEStartHandler getInstance()
24     {
25         return instance;
26     }
27     public void handleEvent(TKEvent evt) throws TKException
28     {
29         try
30         {
31             TKHTMLTemplate frame = evt.getPrepHTMLTemplate( "f_te.tmpl" );
32             HTMLUtils.fillFrameSet( frame, LEFT_FRAME_WIDTH_SMALL, "TE_SHOWLIST", "EMPTY" );
33             
34             WebManEvent.fillEventsIntoTemplate(evt.getRemoteUser(), frame, ContextConstants.TEMPLATES);
35             evt.finishTemplate(frame);
36         }
37         catch (Throwable JavaDoc t)
38         {
39             throw WebmanExceptionHandler.getException(t);
40         }
41     }
42     public boolean isHandler(TKEvent evt)
43     {
44         return evt.getName().equalsIgnoreCase("TE_START");
45     }
46 }
47
Popular Tags