Clover Coverage Report - Kuali Student 1.2-M4-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Jul 20 2011 11:14:35 EDT
../../../../../../../../../img/srcFileCovDistChart0.png 41% of files have more coverage
5   41   4   1.25
0   23   0.8   4
4     1  
1    
 
  BasicLayout       Line # 15 5 0% 4 9 0% 0.0
 
No Tests
 
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    * The most basic implementation of a LayoutController, no navigation, all showView calls must be invoked
10    * by the app.
11    *
12    * @author Kuali Student Team
13    *
14    */
 
15    public class BasicLayout extends LayoutController{
16    private FlowPanel viewContainer = new FlowPanel();
17   
 
18  0 toggle public BasicLayout(String controllerId) {
19  0 super();
20  0 this.initWidget(viewContainer);
21    }
22   
 
23  0 toggle @Override
24    protected void hideView(View view) {
25  0 viewContainer.clear();
26    }
27   
 
28  0 toggle @Override
29    protected void renderView(View view) {
30  0 viewContainer.add(view.asWidget());
31    }
32   
33    /**
34    * This version of updateModel only updates from the currentView (since only one view is shown/accessed at a time).
35    * Call updateModelFromView to update from a specific view under this controller's scope.
36    */
 
37  0 toggle @Override
38    public void updateModel() {
39  0 this.updateModelFromCurrentView();
40    }
41    }