01: package de.webman.config.eventhandler;
02:
03: import java.util.*;
04:
05: import com.teamkonzept.web.*;
06: import com.teamkonzept.webman.mainint.*;
07: import com.teamkonzept.webman.*;
08: import com.teamkonzept.lib.*;
09: import com.teamkonzept.webman.mainint.events.*;
10:
11: /**
12: * Displays a frameset to select a language
13: * @author $Author: mischa $
14: * @version $Revision: 1.1 $
15: */
16: public class COLanguageFrameHandler extends DefaultEventHandler
17: implements ParameterTypes, DatabaseDefaults, FrameConstants {
18: private COLanguageFrameHandler() {
19: }
20:
21: private static COLanguageFrameHandler instance = new COLanguageFrameHandler();
22:
23: public static COLanguageFrameHandler getInstance() {
24: return instance;
25: }
26:
27: public void handleEvent(TKEvent evt) throws TKException {
28: try {
29: // WebManEvent.checkEvent(evt, ContextConstants.CUSTOMIZE_PROPERTIES); // check if event is allowed
30:
31: TKHTMLTemplate t = evt
32: .getPrepHTMLTemplate("f_co_lang.tmpl");
33:
34: // WebManEvent.fillEventsIntoTemplate(evt, t, CUSTOMIZE_PROPERTIES);
35: evt.finishTemplate(t);
36: } catch (Throwable e) {
37: throw WebmanExceptionHandler.getException(e);
38: }
39: }
40:
41: public boolean isHandler(TKEvent evt) {
42: return evt.getName().equalsIgnoreCase("CO_LANGUAGE_FRAME");
43: }
44:
45: }
|