1 package de.webman.template.eventhandler; 2 3 import com.teamkonzept.webman.mainint.events.*; 4 import com.teamkonzept.webman.mainint.*; 5 import com.teamkonzept.webman.*; 6 import com.teamkonzept.web.*; 7 import com.teamkonzept.lib.*; 8 9 16 public class TEStartHandler extends DefaultEventHandler implements FrameConstants 17 { 18 private TEStartHandler() 19 {} 20 21 private static TEStartHandler instance = new TEStartHandler(); 22 23 public static TEStartHandler getInstance() 24 { 25 return instance; 26 } 27 public void handleEvent(TKEvent evt) throws TKException 28 { 29 try 30 { 31 TKHTMLTemplate frame = evt.getPrepHTMLTemplate( "f_te.tmpl" ); 32 HTMLUtils.fillFrameSet( frame, LEFT_FRAME_WIDTH_SMALL, "TE_SHOWLIST", "EMPTY" ); 33 34 WebManEvent.fillEventsIntoTemplate(evt.getRemoteUser(), frame, ContextConstants.TEMPLATES); 35 evt.finishTemplate(frame); 36 } 37 catch (Throwable t) 38 { 39 throw WebmanExceptionHandler.getException(t); 40 } 41 } 42 public boolean isHandler(TKEvent evt) 43 { 44 return evt.getName().equalsIgnoreCase("TE_START"); 45 } 46 } 47 | Popular Tags |