Clover Coverage Report - Kuali Student 1.3.0-SNAPSHOT (Aggregated)
Coverage timestamp: Thu Apr 28 2011 05:03:32 EDT
../../../../../../../img/srcFileCovDistChart0.png 2% of files have more coverage
8   53   7   1.14
0   37   0.88   3.5
7     1  
2    
 
  UpdateEvent       Line # 11 8 0% 7 15 0% 0.0
  UpdateEvent.Handler       Line # 50 0 - 0 0 - -1.0
 
No Tests
 
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.Callback;
6    import org.kuali.student.common.ui.client.mvc.Controller;
7   
8    /**
9    * @author Igor
10    */
 
11    public class UpdateEvent extends GwtEvent<UpdateEvent.Handler> {
12   
13    public static Type<Handler> TYPE = new Type<Handler>();
14   
15    private Callback<Boolean> okCallback;
16   
17    private Enum<?> currentView;
18   
 
19  0 toggle public UpdateEvent() {
20  0 this(Controller.NO_OP_CALLBACK);
21    }
22   
 
23  0 toggle public UpdateEvent(Enum<?> currentView) {
24  0 this();
25  0 this.currentView = currentView;
26    }
27   
 
28  0 toggle public UpdateEvent(Callback<Boolean> okCallback) {
29  0 this.okCallback = okCallback;
30    }
31   
 
32  0 toggle @Override
33    public Type<Handler> getAssociatedType() {
34  0 return TYPE;
35    }
36   
 
37  0 toggle @Override
38    protected void dispatch(Handler handler) {
39  0 handler.onEvent(this);
40    }
41   
 
42  0 toggle public Callback<Boolean> getOkCallback() {
43  0 return okCallback;
44    }
45   
 
46  0 toggle public Enum<?> getCurrentView() {
47  0 return currentView;
48    }
49   
 
50    public static interface Handler extends EventHandler {
51    void onEvent(UpdateEvent event);
52    }
53    }