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 | |
|
7 | |
|
8 | |
|
9 | 0 | public class RemoveSpecializationEvent extends GwtEvent<RemoveSpecializationEvent.Handler> { |
10 | |
|
11 | 0 | public static Type<Handler> TYPE = new Type<Handler>(); |
12 | |
|
13 | |
private String id; |
14 | |
|
15 | 0 | public RemoveSpecializationEvent(String id) { |
16 | 0 | this.id = id; |
17 | 0 | } |
18 | |
|
19 | |
@Override |
20 | |
public Type<Handler> getAssociatedType() { |
21 | 0 | return TYPE; |
22 | |
} |
23 | |
|
24 | |
@Override |
25 | |
protected void dispatch(Handler handler) { |
26 | 0 | handler.onEvent(this); |
27 | 0 | } |
28 | |
|
29 | |
public static interface Handler extends EventHandler { |
30 | |
void onEvent(RemoveSpecializationEvent event); |
31 | |
} |
32 | |
} |