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 |
|
|
7 |
|
@author |
8 |
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
9 |
|
public class ChangeViewEvent extends GwtEvent<ChangeViewEvent.Handler> { |
10 |
|
|
11 |
|
public static Type<Handler> TYPE = new Type<Handler>(); |
12 |
|
|
13 |
|
private Enum<?> viewToken; |
14 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
15 |
0
|
public ChangeViewEvent(Enum<?> viewToken) {... |
16 |
0
|
this.viewToken = viewToken; |
17 |
|
} |
18 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
19 |
0
|
public Enum<?> getViewToken() {... |
20 |
0
|
return viewToken; |
21 |
|
} |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
23 |
0
|
@Override... |
24 |
|
public Type<Handler> getAssociatedType() { |
25 |
0
|
return TYPE; |
26 |
|
} |
27 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
28 |
0
|
@Override... |
29 |
|
protected void dispatch(Handler handler) { |
30 |
0
|
handler.onEvent(this); |
31 |
|
} |
32 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
33 |
|
public static interface Handler extends EventHandler { |
34 |
|
void onEvent(ChangeViewEvent event); |
35 |
|
} |
36 |
|
} |