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.core.assembly.data.Data;
6
7
8
9
10 public class SpecializationSaveEvent extends GwtEvent<SpecializationSaveEvent.Handler> {
11
12 public static Type<Handler> TYPE = new Type<Handler>();
13
14 private Data data;
15
16 public SpecializationSaveEvent(Data data) {
17 this.data = data;
18 }
19
20 public Data getData() {
21 return data;
22 }
23
24 @Override
25 public Type<Handler> getAssociatedType() {
26 return TYPE;
27 }
28
29 @Override
30 protected void dispatch(Handler handler) {
31 handler.onEvent(this);
32 }
33
34 public static interface Handler extends EventHandler {
35 void onEvent(SpecializationSaveEvent event);
36 }
37 }