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