Coverage Report - org.kuali.student.lum.program.client.events.AfterSaveEvent
 
Classes in this File Line Coverage Branch Coverage Complexity
AfterSaveEvent
0%
0/11
N/A
1
AfterSaveEvent$Handler
N/A
N/A
1
 
 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  
 import org.kuali.student.common.ui.client.mvc.DataModel;
 6  
 import org.kuali.student.lum.program.client.ProgramController;
 7  
 
 8  
 /**
 9  
  * @author Igor
 10  
  */
 11  0
 public class AfterSaveEvent extends GwtEvent<AfterSaveEvent.Handler> {
 12  
 
 13  0
     public static Type<Handler> TYPE = new Type<Handler>();
 14  
 
 15  
     private DataModel model;
 16  
 
 17  
     private ProgramController controller;
 18  
 
 19  0
     public AfterSaveEvent(DataModel model, ProgramController controller) {
 20  0
         this.model = model;
 21  0
         this.controller = controller;
 22  0
     }
 23  
 
 24  
     public DataModel getModel() {
 25  0
         return model;
 26  
     }
 27  
 
 28  
     public ProgramController getController() {
 29  0
         return controller;
 30  
     }
 31  
 
 32  
     @Override
 33  
     public Type<Handler> getAssociatedType() {
 34  0
         return TYPE;
 35  
     }
 36  
 
 37  
     @Override
 38  
     protected void dispatch(Handler handler) {
 39  0
         handler.onEvent(this);
 40  0
     }
 41  
 
 42  
     public static interface Handler extends EventHandler {
 43  
         void onEvent(AfterSaveEvent event);
 44  
     }
 45  
 }