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 TENewHandler extends DefaultEventHandler 17 { 18 private TENewHandler() 19 {} 20 21 private static TENewHandler instance = new TENewHandler(); 22 23 public static TENewHandler getInstance() 24 { 25 return instance; 26 } 27 28 public void handleEvent(TKEvent evt) throws TKException 29 { 30 try 31 { 32 TKHTMLTemplate t = evt.getPrepHTMLTemplate( "te_renameTmpl.tmpl" ); 33 WebManEvent.fillEventsIntoTemplate(evt.getRemoteUser(), t, ContextConstants.TEMPLATES); 34 evt.finishTemplate(t); 35 } 36 catch( Throwable e ) 37 { 38 throw WebmanExceptionHandler.getException(e); 39 } 40 } 41 public boolean isHandler(TKEvent evt) 42 { 43 return evt.getName().equalsIgnoreCase("TE_NEW"); 44 } 45 } 46 | Popular Tags |