Coverage Report - org.kuali.student.core.document.ui.client.widgets.documenttool.DocumentListBinding
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentListBinding
0%
0/9
0%
0/2
1.333
 
 1  
 package org.kuali.student.core.document.ui.client.widgets.documenttool;
 2  
 
 3  
 import org.kuali.student.common.ui.client.configurable.mvc.binding.ModelWidgetBindingSupport;
 4  
 import org.kuali.student.common.ui.client.mvc.DataModel;
 5  
 
 6  0
 public class DocumentListBinding extends ModelWidgetBindingSupport<DocumentList>{
 7  
 
 8  
         private String objectIdPath;
 9  0
         public DocumentListBinding(String objectIdPath){
 10  0
                 this.objectIdPath = objectIdPath;
 11  0
         }
 12  
         
 13  
         @Override
 14  
         public void setModelValue(DocumentList widget, DataModel model, String path) {
 15  
                 // Not needed, this is a read only binding
 16  
                 
 17  0
         }
 18  
 
 19  
         @Override
 20  
         public void setWidgetValue(DocumentList widget, DataModel model, String path) {
 21  
                 //ignore path, not needed
 22  0
         if (model.get(objectIdPath) != null) {
 23  0
             String id = model.get(objectIdPath);
 24  0
             widget.getAndSetDocInfos(id);
 25  
         }
 26  0
         }
 27  
 
 28  
 }