KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > duplication > eventhandler > DUStartHandler


1 package de.webman.duplication.eventhandler;
2
3 import com.teamkonzept.web.*;
4 import com.teamkonzept.webman.*;
5 import com.teamkonzept.webman.db.TKWebmanDBManager;
6 import com.teamkonzept.webman.mainint.*;
7 import com.teamkonzept.webman.mainint.db.*;
8
9
10 import com.teamkonzept.webman.mainint.db.queries.*;
11 import com.teamkonzept.webman.mainint.events.*;
12 import com.teamkonzept.lib.*;
13 import com.teamkonzept.db.*;
14
15 import java.sql.*;
16 import java.io.*;
17
18
19 /**
20 * Anzeigen der Maske zum Neuordnen des Contenttree
21 *
22 *
23 * @param
24 */

25 public class DUStartHandler extends DefaultEventHandler implements ParameterTypes, FrameConstants, DatabaseDefaults
26 {
27     private DUStartHandler()
28     {}
29     
30     private static DUStartHandler instance = new DUStartHandler();
31     
32     public static DUStartHandler getInstance()
33     {
34         return instance;
35     }
36     
37     public void handleEvent(TKEvent evt) throws TKException
38     {
39         try{
40             TKHTMLTemplate t = evt.getPrepHTMLTemplate( "du_intro.tmpl" );
41             t.set( "CHOOSE", "1" );
42             evt.finishTemplate(t);
43         }
44         catch (Throwable JavaDoc e)
45         {
46             // TO DO : Analyze Exception !
47
throw WebmanExceptionHandler.getException(e);
48         }
49     }
50     
51     public boolean isHandler(TKEvent evt)
52     {
53         return evt.getName().equalsIgnoreCase("DU_START");
54     }
55         
56 }
57
Popular Tags