Coverage Report - org.kuali.student.common.ui.client.configurable.mvc.layouts.BasicLayout
 
Classes in this File Line Coverage Branch Coverage Complexity
BasicLayout
0%
0/10
N/A
1
 
 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  
 public class BasicLayout extends LayoutController{
 9  0
         private FlowPanel viewContainer = new FlowPanel();
 10  
 
 11  
         public BasicLayout(String controllerId) {
 12  0
                 super(controllerId);
 13  0
                 this.initWidget(viewContainer);
 14  0
         }
 15  
 
 16  
         @Override
 17  
         protected void hideView(View view) {
 18  0
                 viewContainer.clear();
 19  0
         }
 20  
 
 21  
         @Override
 22  
         protected void renderView(View view) {
 23  0
                 viewContainer.add(view.asWidget());
 24  0
         }
 25  
 
 26  
         /** 
 27  
          * This version of updateModel only updates from the currentView (since only one view is shown/accessed at a time).  
 28  
          * Call updateModelFromView to update from a specific view under this controller's scope.
 29  
          */
 30  
         @Override
 31  
         public void updateModel() {
 32  0
                 this.updateModelFromCurrentView();
 33  0
         }
 34  
 }