01: package de.webman.config;
02:
03: import java.util.*;
04:
05: import com.teamkonzept.web.*;
06: import com.teamkonzept.webman.mainint.events.*;
07: import de.webman.config.eventhandler.*;
08:
09: /**
10: * Description: <p>Distributes Events for System Controls
11: * Copyright: Copyright (c) <p>
12: * Company: <p>WebMan
13: * @author careck
14: * @version 0.10
15: */
16: public class COEventDistributor extends CachedEventDistributor {
17:
18: public COEventDistributor() {
19: addEventHandler(COPropFrameHandler.getInstance());
20: addEventHandler(COPropListHandler.getInstance());
21: addEventHandler(COPropEditHandler.getInstance());
22: addEventHandler(COPropUpdateHandler.getInstance());
23: addEventHandler(COPropDeleteHandler.getInstance());
24: addEventHandler(COLanguageFrameHandler.getInstance());
25: addEventHandler(COPropGroupFrameHandler.getInstance());
26: addEventHandler(COPropGroupListHandler.getInstance());
27: addEventHandler(COPropGroupEditHandler.getInstance());
28: addEventHandler(COPropGroupUpdateHandler.getInstance());
29: addEventHandler(COPropGroupDeleteHandler.getInstance());
30: addEventHandler(COPropGroupAddPropHandler.getInstance());
31: addEventHandler(COPropGroupDelPropHandler.getInstance());
32: addEventHandler(COChooseLanguageHandler.getInstance());
33: addEventHandler(COWorkflowFrameHandler.getInstance());
34: addEventHandler(COEditStatusHandler.getInstance());
35: addEventHandler(COSaveStatusHandler.getInstance());
36: addEventHandler(COEditFilterHandler.getInstance());
37: addEventHandler(COSaveFilterHandler.getInstance());
38: addEventHandler(COSaveFilterRulesHandler.getInstance());
39: addEventHandler(CODeleteFilterHandler.getInstance());
40: addEventHandler(COWorkflowListHandler.getInstance());
41: addEventHandler(COErrorHandler.getInstance());
42: }
43:
44: public boolean isHandler(TKEvent evt) {
45: return evt.getName().startsWith("CO");
46: }
47:
48: }
|