1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.ui.client.mvc; |
17 |
|
|
18 |
|
import java.util.List; |
19 |
|
|
20 |
|
import com.google.gwt.user.client.ui.Composite; |
21 |
|
import com.google.gwt.user.client.ui.Widget; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
@author |
27 |
|
|
|
|
| 0% |
Uncovered Elements: 26 (26) |
Complexity: 14 |
Complexity Density: 1.17 |
|
28 |
|
public abstract class ViewComposite extends Composite implements View { |
29 |
|
private final Controller controller; |
30 |
|
private final String name; |
31 |
|
private final Enum<?> viewType; |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
@param |
37 |
|
|
38 |
|
@param |
39 |
|
|
40 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
41 |
0
|
public ViewComposite(Controller controller, String name, Enum<?> viewType) {... |
42 |
0
|
this.controller = controller; |
43 |
0
|
this.name = name; |
44 |
0
|
this.viewType = viewType; |
45 |
|
} |
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
@Override... |
52 |
|
public void beforeShow(final Callback<Boolean> onReadyCallback) { |
53 |
|
|
54 |
0
|
onReadyCallback.exec(true); |
55 |
|
} |
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
@return |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0
|
@Override... |
64 |
|
public boolean beforeHide() { |
65 |
0
|
return true; |
66 |
|
} |
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
@see |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
0
|
@Override... |
74 |
|
public Controller getController() { |
75 |
0
|
return controller; |
76 |
|
} |
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
@see |
82 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
0
|
@Override... |
84 |
|
public String getName() { |
85 |
0
|
return name; |
86 |
|
} |
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
@see |
92 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
93 |
0
|
public void clear(){... |
94 |
|
|
95 |
|
} |
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
@see |
103 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
104 |
0
|
public void updateModel(){ ... |
105 |
|
} |
106 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
0
|
@Override... |
108 |
|
public String collectHistory(String historyStack) { |
109 |
0
|
return historyStack; |
110 |
|
} |
111 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
112 |
0
|
@Override... |
113 |
|
public void onHistoryEvent(String historyStack) { |
114 |
|
|
115 |
|
} |
116 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
117 |
0
|
@Override... |
118 |
|
public void collectBreadcrumbNames(List<String> names) { |
119 |
0
|
names.add(this.getName()); |
120 |
|
} |
121 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
122 |
0
|
@Override... |
123 |
|
public Enum<?> getViewEnum() { |
124 |
0
|
return viewType; |
125 |
|
|
126 |
|
}; |
127 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
128 |
0
|
@Override... |
129 |
|
public Widget asWidget() { |
130 |
|
|
131 |
0
|
return this; |
132 |
|
} |
133 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
134 |
0
|
public boolean isExportButtonActive() {... |
135 |
0
|
return false; |
136 |
|
} |
137 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
138 |
0
|
@Override... |
139 |
|
public void showExport(boolean show) { |
140 |
|
|
141 |
|
} |
142 |
|
|
143 |
|
} |