Coverage Report - org.kuali.student.common.ui.client.widgets.field.layout.button.ContinueCancelGroup
 
Classes in this File Line Coverage Branch Coverage Complexity
ContinueCancelGroup
0%
0/9
N/A
1
ContinueCancelGroup$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;
 5  
 
 6  
 import com.google.gwt.event.dom.client.ClickEvent;
 7  
 import com.google.gwt.event.dom.client.ClickHandler;
 8  
 
 9  
 
 10  
 public class ContinueCancelGroup extends ButtonGroup<ButtonEnumerations.ContinueCancelEnum>{
 11  
         public ContinueCancelGroup(){
 12  0
                 super();
 13  0
                 createButton(ButtonEnumerations.ContinueCancelEnum.CONTINUE);
 14  0
                 createButton(ButtonEnumerations.ContinueCancelEnum.CANCEL);
 15  0
         }
 16  
 
 17  
         private void createButton(final ButtonEnumerations.ContinueCancelEnum 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  
 
 31  
 }