01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: package org.netbeans.modules.bpel.model.api.events;
21:
22: import java.util.EventListener;
23:
24: /**
25: * Interface that should be implemented by each intrested on events from OM
26: * participant.
27: *
28: * @author ads
29: */
30: public interface ChangeEventListener extends EventListener {
31:
32: /**
33: * Method is called when attribute is removed.
34: *
35: * @param event Notificitaion event.
36: */
37: void notifyPropertyRemoved(PropertyRemoveEvent event);
38:
39: /**
40: * Method is called when new entity was inserted ( may be in some position )
41: * in OM.
42: *
43: * @param event
44: * Notificitaion event
45: */
46: void notifyEntityInserted(EntityInsertEvent event);
47:
48: /**
49: * Method is called when attribute is updated.
50: *
51: * @param event
52: * Notificitaion event
53: */
54: void notifyPropertyUpdated(PropertyUpdateEvent event);
55:
56: /**
57: * Method is called when entity was removed from OM.
58: *
59: * @param event
60: * Notificitaion event
61: */
62: void notifyEntityRemoved(EntityRemoveEvent event);
63:
64: /**
65: * Method is called when entity was updated.
66: *
67: * @param event
68: * Notificitaion event
69: */
70: void notifyEntityUpdated(EntityUpdateEvent event);
71:
72: /**
73: * Method is called when array of children was updated.
74: *
75: * @param event
76: * Notificitaion event
77: */
78: void notifyArrayUpdated(ArrayUpdateEvent event);
79:
80: }
|