Coverage Report - org.kuali.student.common.ui.client.widgets.field.layout.button.YesNoCancelGroup
 
Classes in this File Line Coverage Branch Coverage Complexity
YesNoCancelGroup
0%
0/10
N/A
1
YesNoCancelGroup$1
0%
0/3
N/A
1
 
 1  
 package org.kuali.student.common.ui.client.widgets.field.layout.button;
 2  
 
 3  
 import org.kuali.student.common.ui.client.widgets.KSButton;
 4  
 import org.kuali.student.common.ui.client.widgets.buttongroups.ButtonEnumerations.YesNoCancelEnum;
 5  
 
 6  
 import com.google.gwt.event.dom.client.ClickEvent;
 7  
 import com.google.gwt.event.dom.client.ClickHandler;
 8  
 
 9  
 public class YesNoCancelGroup extends ButtonGroup<YesNoCancelEnum>{
 10  
         public YesNoCancelGroup(){
 11  0
                 super();
 12  0
                 createButton(YesNoCancelEnum.YES);
 13  0
                 createButton(YesNoCancelEnum.NO);
 14  0
                 createButton(YesNoCancelEnum.CANCEL);
 15  0
         }
 16  
 
 17  
         private void createButton(final YesNoCancelEnum type){
 18  0
                 KSButton button = new KSButton(type.getText(), type.getStyle());
 19  
 
 20  0
                 button.addClickHandler(new ClickHandler(){
 21  
 
 22  
             @Override
 23  
             public void onClick(ClickEvent event) {
 24  0
                 sendCallbacks(type);
 25  0
             }
 26  
         });
 27  0
         this.addButton(button);
 28  0
         buttonMap.put(type, button);
 29  0
         }
 30  
 }