1 |
|
package org.kuali.student.common.ui.client.configurable.mvc.layouts; |
2 |
|
|
3 |
|
import org.kuali.student.common.ui.client.configurable.mvc.LayoutController; |
4 |
|
import org.kuali.student.common.ui.client.mvc.View; |
5 |
|
|
6 |
|
import com.google.gwt.user.client.ui.FlowPanel; |
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
@author |
13 |
|
|
14 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 4 |
Complexity Density: 0.8 |
|
15 |
|
public class BasicLayout extends LayoutController{ |
16 |
|
private FlowPanel viewContainer = new FlowPanel(); |
17 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
18 |
0
|
public BasicLayout(String controllerId) {... |
19 |
0
|
super(); |
20 |
0
|
this.initWidget(viewContainer); |
21 |
|
} |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
23 |
0
|
@Override... |
24 |
|
protected void hideView(View view) { |
25 |
0
|
viewContainer.clear(); |
26 |
|
} |
27 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
28 |
0
|
@Override... |
29 |
|
protected void renderView(View view) { |
30 |
0
|
viewContainer.add(view.asWidget()); |
31 |
|
} |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
37 |
0
|
@Override... |
38 |
|
public void updateModel() { |
39 |
0
|
this.updateModelFromCurrentView(); |
40 |
|
} |
41 |
|
} |