KickJava   Java API By Example, From Geeks To Geeks.

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


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.field.*;
14 import com.teamkonzept.field.db.*;
15 import com.teamkonzept.db.*;
16 import com.teamkonzept.publishing.markups.*;
17
18 import java.sql.*;
19 import java.io.*;
20
21
22
23
24 /************************************************************************
25 /**
26 * Anzeigen der Maske zum Neuordnen des Contenttree
27 *
28 *
29 * @param
30 */

31 public class DUStartManHandler extends DefaultEventHandler implements ParameterTypes, FrameConstants, DatabaseDefaults
32 {
33     private DUStartManHandler()
34     {}
35     
36     private static DUStartManHandler instance = new DUStartManHandler();
37     
38     public static DUStartManHandler getInstance()
39     {
40         return instance;
41     }
42     
43     public void handleEvent(TKEvent evt) throws TKException
44     {
45         try
46         {
47             TKParams params = evt.getParams();
48             
49             TKHTMLTemplate t = evt.getPrepHTMLTemplate( "du_intro.tmpl" );
50             if(params.getClass("PAR") != null){
51                 t.set(params.getClass("PAR"));
52             }
53             t.set( "MAN", "1" );
54             //t.doTagSubstitution();
55
//t.printTemplate( out );
56
evt.finishTemplate(t);
57 // return true;
58

59
60         }
61         catch (Throwable JavaDoc e)
62         {
63             // TO DO : Analyze Exception !
64
throw WebmanExceptionHandler.getException(e);
65         }
66     }
67     
68     public boolean isHandler(TKEvent evt)
69     {
70         return evt.getName().equalsIgnoreCase("DU_START_MAN");
71     }
72         
73 }
74
Popular Tags