1 package de.webman.form.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 27 public class CTFramesHandler extends DefaultEventHandler implements ParameterTypes, FrameConstants, DatabaseDefaults 28 { 29 private CTFramesHandler() 30 {} 31 32 private static CTFramesHandler instance = new CTFramesHandler(); 33 34 public static CTFramesHandler getInstance() 35 { 36 return instance; 37 } 38 39 public void handleEvent(TKEvent evt) throws TKException 40 { 41 try 42 { 43 WebManEvent.checkEvent(evt.getRemoteUser(), evt.getName(), ContextConstants.CONTENT_TREE); 44 TKHTMLTemplate frame = evt.getPrepHTMLTemplate( "f_ct.tmpl" ); 45 HTMLUtils.fillFrameSet( frame, LEFT_FRAME_WIDTH_SMALL, "CT_SHOWLIST", "CT_EMPTY" ); 46 WebManEvent.fillEventsIntoTemplate(evt.getRemoteUser(), frame, CONTENT_TREE); 47 evt.finishTemplate(frame); 48 } 49 catch (Throwable e) 50 { 51 throw WebmanExceptionHandler.getException(e); 52 } 53 } 54 55 public boolean isHandler(TKEvent evt) 56 { 57 return evt.getName().equalsIgnoreCase("CT_START"); 58 } 59 } 60 | Popular Tags |