1 package org.kuali.student.lum.program.client.events;
2
3 import com.google.gwt.event.shared.EventHandler;
4 import com.google.gwt.event.shared.GwtEvent;
5
6 import org.kuali.student.common.ui.client.mvc.DataModel;
7 import org.kuali.student.lum.program.client.ProgramController;
8
9
10
11
12 public class AfterSaveEvent extends GwtEvent<AfterSaveEvent.Handler> {
13
14 public static Type<Handler> TYPE = new Type<Handler>();
15
16 private DataModel model;
17
18 private ProgramController controller;
19
20 public AfterSaveEvent(DataModel model, ProgramController controller) {
21 this.model = model;
22 this.controller = controller;
23 }
24
25 public DataModel getModel() {
26 return model;
27 }
28
29 public ProgramController getController() {
30 return controller;
31 }
32
33 @Override
34 public Type<Handler> getAssociatedType() {
35 return TYPE;
36 }
37
38 @Override
39 protected void dispatch(Handler handler) {
40 handler.onEvent(this);
41 }
42
43 public static interface Handler extends EventHandler {
44 void onEvent(AfterSaveEvent event);
45 }
46 }