KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > config > eventhandler > COPropGroupFrameHandler


1 package de.webman.config.eventhandler;
2
3 import java.util.*;
4
5 import com.teamkonzept.web.*;
6 import com.teamkonzept.webman.*;
7 import com.teamkonzept.lib.*;
8 import com.teamkonzept.webman.mainint.*;
9 import com.teamkonzept.webman.mainint.events.*;
10
11 /**
12    Displays a frameset with a list of users on the left and an empty page to the right
13  * @author $Author: alex $
14  * @version $Revision: 1.3 $
15 */

16 public class COPropGroupFrameHandler extends DefaultEventHandler implements ParameterTypes, DatabaseDefaults, FrameConstants
17 {
18     private COPropGroupFrameHandler() {}
19     
20     private static COPropGroupFrameHandler instance = new COPropGroupFrameHandler();
21     
22     public static COPropGroupFrameHandler getInstance()
23     {
24         return instance;
25     }
26
27     public void handleEvent(TKEvent evt) throws TKException
28     {
29         try {
30             WebManEvent.checkEvent(evt.getRemoteUser(), evt.getName(), ContextConstants.CUSTOMIZE_PROPERTIES); // check if event is allowed
31

32             TKHTMLTemplate t = evt.getPrepHTMLTemplate( "f_co_propgroup.tmpl" );
33             HTMLUtils.fillFrameSet( t, LEFT_FRAME_WIDTH, "CO_PROPGROUP_LIST", "EMPTY" );
34             t.set("RTARGET", RIGHT_TARGET);
35             WebManEvent.fillEventsIntoTemplate(evt.getRemoteUser(), t, CUSTOMIZE_PROPERTIES);
36             evt.finishTemplate( t );
37         } catch (Throwable JavaDoc e) {
38             throw WebmanExceptionHandler.getException(e);
39         }
40     }
41     
42     public boolean isHandler(TKEvent evt)
43     {
44         return evt.getName().equalsIgnoreCase( "CO_PROPGROUP_FRAME" );
45     }
46
47 }
48
Popular Tags