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 org.kuali.student.r1.common.assembly.data.Data;
7   
8   /**
9    * @author Igor
10   */
11  public class SpecializationSaveEvent extends GwtEvent<SpecializationSaveEvent.Handler> {
12  
13      public static Type<Handler> TYPE = new Type<Handler>();
14  
15      private Data data;
16  
17      public SpecializationSaveEvent(Data data) {
18          this.data = data;
19      }
20  
21      public Data getData() {
22          return data;
23      }
24  
25      @Override
26      public Type<Handler> getAssociatedType() {
27          return TYPE;
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(SpecializationSaveEvent event);
37      }
38  }