1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.ui.client.mvc.events; |
17 |
|
|
18 |
|
import org.kuali.student.common.ui.client.mvc.ApplicationEvent; |
19 |
|
import org.kuali.student.common.ui.client.mvc.View; |
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
@author |
25 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 5 |
Complexity Density: 0.71 |
|
26 |
|
public class ViewChangeEvent extends ApplicationEvent<ViewChangeHandler> { |
27 |
|
public static final Type<ViewChangeHandler> TYPE = new Type<ViewChangeHandler>(); |
28 |
|
|
29 |
|
private final View previousView; |
30 |
|
private final View newView; |
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
@param |
36 |
|
|
37 |
|
@param |
38 |
|
|
39 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
40 |
0
|
public ViewChangeEvent(View previousView, View newView) {... |
41 |
0
|
super(); |
42 |
0
|
this.previousView = previousView; |
43 |
0
|
this.newView = newView; |
44 |
|
} |
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
@return |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
public View getPreviousView() {... |
52 |
0
|
return previousView; |
53 |
|
} |
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
@return |
59 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
60 |
0
|
public View getNewView() {... |
61 |
0
|
return newView; |
62 |
|
} |
63 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
0
|
@Override... |
65 |
|
protected void dispatch(ViewChangeHandler handler) { |
66 |
0
|
handler.onViewChange(this); |
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0
|
@Override... |
70 |
|
public Type<ViewChangeHandler> getAssociatedType() { |
71 |
0
|
return TYPE; |
72 |
|
} |
73 |
|
|
74 |
|
} |