1 package de.webman.config.eventhandler; 2 3 import java.util.*; 4 5 import com.teamkonzept.web.*; 6 import com.teamkonzept.webman.mainint.*; 7 import com.teamkonzept.webman.*; 8 import com.teamkonzept.lib.*; 9 import com.teamkonzept.webman.mainint.events.*; 10 11 16 public class COPropFrameHandler extends DefaultEventHandler implements ParameterTypes, DatabaseDefaults, FrameConstants 17 { 18 private COPropFrameHandler() {} 19 20 private static COPropFrameHandler instance = new COPropFrameHandler(); 21 22 public static COPropFrameHandler getInstance() 23 { 24 return instance; 25 } 26 27 public void handleEvent(TKEvent evt) throws TKException 28 { 29 try { 30 WebManEvent.checkEvent(evt.getRemoteUser(), evt.getName(), ContextConstants.CUSTOMIZE_PROPERTIES); 32 String propGroupId = evt.getParameter(PARAMETER, "PROPGROUP_ID"); 33 propGroupId = (propGroupId != null ? propGroupId : "-1"); 34 35 52 53 evt.getParams().put(PARAMETER, "PROPGROUP_ID", propGroupId); 54 evt.getParams().put(PARAMETER, "LIST_PROPS", "1"); 55 COPropGroupEditHandler.getInstance().handleEvent(evt); 56 57 58 } catch (Throwable e) { 59 throw WebmanExceptionHandler.getException(e); 60 } 61 } 62 63 public boolean isHandler(TKEvent evt) 64 { 65 return evt.getName().equalsIgnoreCase( "CO_PROP_FRAME" ); 66 } 67 68 } 69 | Popular Tags |