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