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 java.util.List; |
7 | |
|
8 | 0 | public class StoreRequirementIDsEvent extends GwtEvent<StoreRequirementIDsEvent.Handler> { |
9 | |
|
10 | 0 | public static Type<Handler> TYPE = new Type<Handler>(); |
11 | |
private String programId; |
12 | |
private String programType; |
13 | |
private List<String> programRequirementIds; |
14 | |
|
15 | 0 | public StoreRequirementIDsEvent(String programId, String programType, List<String> programRequirementIds) { |
16 | 0 | this.programId = programId; |
17 | 0 | this.programType = programType; |
18 | 0 | this.programRequirementIds = programRequirementIds; |
19 | 0 | } |
20 | |
|
21 | |
@Override |
22 | |
public Type<Handler> getAssociatedType() { |
23 | 0 | return TYPE; |
24 | |
} |
25 | |
|
26 | |
@Override |
27 | |
protected void dispatch(Handler handler) { |
28 | 0 | handler.onEvent(this); |
29 | 0 | } |
30 | |
|
31 | |
public String getProgramId() { |
32 | 0 | return programId; |
33 | |
} |
34 | |
|
35 | |
public String getProgramType() { |
36 | 0 | return programType; |
37 | |
} |
38 | |
|
39 | |
public List<String> getProgramRequirementIds() { |
40 | 0 | return programRequirementIds; |
41 | |
} |
42 | |
|
43 | |
public static interface Handler extends EventHandler { |
44 | |
void onEvent(StoreRequirementIDsEvent event); |
45 | |
} |
46 | |
} |