View Javadoc

1   package org.kuali.student.lum.program.client.events;
2   
3   import org.kuali.student.common.assembly.data.Data;
4   
5   import com.google.gwt.event.shared.EventHandler;
6   import com.google.gwt.event.shared.GwtEvent;
7   
8   /**
9    * @author Igor
10   */
11  public class SpecializationUpdateEvent extends GwtEvent<SpecializationUpdateEvent.Handler> {
12  
13      public static Type<Handler> TYPE = new Type<Handler>();
14  
15      private final Data specializations;
16  
17      public SpecializationUpdateEvent(Data specs) {
18          this.specializations = specs;
19      }
20  
21      @Override
22      public Type<Handler> getAssociatedType() {
23          return TYPE;
24      }
25  
26      public Data getSpecializations() {
27          return specializations;
28      }
29  
30      @Override
31      protected void dispatch(Handler handler) {
32          handler.onEvent(this);
33      }
34  
35      public static interface Handler extends EventHandler {
36          void onEvent(SpecializationUpdateEvent event);
37      }
38  }