01: package de.webman.form.eventhandler;
02:
03: import com.teamkonzept.web.*;
04: import com.teamkonzept.webman.*;
05: import com.teamkonzept.webman.db.TKWebmanDBManager;
06: import com.teamkonzept.webman.mainint.*;
07: import com.teamkonzept.webman.mainint.db.*;
08:
09: import com.teamkonzept.webman.mainint.db.queries.*;
10: import com.teamkonzept.webman.mainint.events.*;
11: import com.teamkonzept.lib.*;
12: import com.teamkonzept.field.*;
13: import com.teamkonzept.field.db.*;
14: import com.teamkonzept.db.*;
15: import com.teamkonzept.publishing.markups.*;
16:
17: import java.sql.*;
18: import java.io.*;
19:
20: /************************************************************************
21: /**
22: * Baut das Frameset auf (vertikal, Tmpl: f_ct.tmpl)
23: *
24: *
25: */
26: public class CTFramesHandler extends DefaultEventHandler implements
27: ParameterTypes, FrameConstants, DatabaseDefaults {
28: private CTFramesHandler() {
29: }
30:
31: private static CTFramesHandler instance = new CTFramesHandler();
32:
33: public static CTFramesHandler getInstance() {
34: return instance;
35: }
36:
37: public void handleEvent(TKEvent evt) throws TKException {
38: try {
39: WebManEvent.checkEvent(evt.getRemoteUser(), evt.getName(),
40: ContextConstants.CONTENT_TREE);
41: TKHTMLTemplate frame = evt.getPrepHTMLTemplate("f_ct.tmpl");
42: HTMLUtils.fillFrameSet(frame, LEFT_FRAME_WIDTH_SMALL,
43: "CT_SHOWLIST", "CT_EMPTY");
44: WebManEvent.fillEventsIntoTemplate(evt.getRemoteUser(),
45: frame, CONTENT_TREE);
46: evt.finishTemplate(frame);
47: } catch (Throwable e) {
48: throw WebmanExceptionHandler.getException(e);
49: }
50: }
51:
52: public boolean isHandler(TKEvent evt) {
53: return evt.getName().equalsIgnoreCase("CT_START");
54: }
55: }
|