Coverage Report - org.kuali.student.lum.program.client.core.CredentialProgramsBinding
 
Classes in this File Line Coverage Branch Coverage Complexity
CredentialProgramsBinding
0%
0/7
0%
0/2
2
 
 1  
 package org.kuali.student.lum.program.client.core;
 2  
 
 3  
 import com.google.gwt.user.client.ui.VerticalPanel;
 4  
 import org.kuali.student.common.ui.client.configurable.mvc.binding.ModelWidgetBinding;
 5  
 import org.kuali.student.common.ui.client.mvc.DataModel;
 6  
 import org.kuali.student.common.ui.client.widgets.KSLabel;
 7  
 import org.kuali.student.core.assembly.data.Data;
 8  
 
 9  
 /**
 10  
  * @author Igor
 11  
  */
 12  0
 public class CredentialProgramsBinding implements ModelWidgetBinding<VerticalPanel> {
 13  
 
 14  
     @Override
 15  
     public void setModelValue(VerticalPanel widget, DataModel model, String path) {
 16  0
         throw new UnsupportedOperationException("Operation is not supported");
 17  
     }
 18  
 
 19  
     @Override
 20  
     public void setWidgetValue(VerticalPanel verticalPanel, DataModel model, String path) {
 21  0
         verticalPanel.clear();
 22  0
         final Data credentialPrograms = model.get(path);
 23  0
         for (final Data.Property property : credentialPrograms) {
 24  0
             verticalPanel.add(new KSLabel(property.<String>getValue()));
 25  
         }
 26  0
     }
 27  
 }