View Javadoc

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