1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.mvc;
17
18 import org.kuali.student.common.ui.client.mvc.ModelChangeEvent.Action;
19
20 import com.google.gwt.event.shared.HandlerManager;
21 import com.google.gwt.event.shared.HandlerRegistration;
22
23 @Deprecated
24 public class AbstractSimpleModel implements Model {
25 private HandlerManager handlers = new HandlerManager(this);
26 @Override
27 public HandlerRegistration addModelChangeHandler(ModelChangeHandler handler) {
28 return handlers.addHandler(ModelChangeEvent.TYPE, handler);
29 }
30
31 protected void fireChangeEvent(Action action) {
32 handlers.fireEvent(new ModelChangeEvent(action, this));
33 }
34
35 }