| 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 |
| 10 |
|
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 7 |
Complexity Density: 0.88 |
|
| 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 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 19 |
0
|
public UpdateEvent() {... |
| 20 |
0
|
this(Controller.NO_OP_CALLBACK); |
| 21 |
|
} |
| 22 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 23 |
0
|
public UpdateEvent(Enum<?> currentView) {... |
| 24 |
0
|
this(); |
| 25 |
0
|
this.currentView = currentView; |
| 26 |
|
} |
| 27 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 28 |
0
|
public UpdateEvent(Callback<Boolean> okCallback) {... |
| 29 |
0
|
this.okCallback = okCallback; |
| 30 |
|
} |
| 31 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 32 |
0
|
@Override... |
| 33 |
|
public Type<Handler> getAssociatedType() { |
| 34 |
0
|
return TYPE; |
| 35 |
|
} |
| 36 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 37 |
0
|
@Override... |
| 38 |
|
protected void dispatch(Handler handler) { |
| 39 |
0
|
handler.onEvent(this); |
| 40 |
|
} |
| 41 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 42 |
0
|
public Callback<Boolean> getOkCallback() {... |
| 43 |
0
|
return okCallback; |
| 44 |
|
} |
| 45 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 46 |
0
|
public Enum<?> getCurrentView() {... |
| 47 |
0
|
return currentView; |
| 48 |
|
} |
| 49 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
| 50 |
|
public static interface Handler extends EventHandler { |
| 51 |
|
void onEvent(UpdateEvent event); |
| 52 |
|
} |
| 53 |
|
} |