Coverage Report - org.kuali.student.common.ui.client.widgets.field.layout.button.ActionCancelGroup
 
Classes in this File Line Coverage Branch Coverage Complexity
ActionCancelGroup
0%
0/9
N/A
1
ActionCancelGroup$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.ButtonEnum;
 5  
 
 6  
 import com.google.gwt.event.dom.client.ClickEvent;
 7  
 import com.google.gwt.event.dom.client.ClickHandler;
 8  
 
 9  
 
 10  
 public class ActionCancelGroup extends ButtonGroup<ButtonEnum> {
 11  
         public ActionCancelGroup(ButtonEnum actionButtonEum, ButtonEnum cancelButtonEum){
 12  0
                 super();
 13  0
                 createButton(actionButtonEum.getActionType());
 14  0
                 createButton(cancelButtonEum.getCancelType());
 15  0
         }
 16  
 
 17  
         private void createButton(final ButtonEnum buttonEum){
 18  
             
 19  0
                 KSButton button = new KSButton(buttonEum.getText(), buttonEum.getStyle());
 20  
 
 21  0
                 button.addClickHandler(new ClickHandler(){
 22  
 
 23  
             @Override
 24  
             public void onClick(ClickEvent event) {
 25  0
                 sendCallbacks(buttonEum);
 26  0
             }
 27  
         });
 28  0
         this.addButton(button);
 29  0
         buttonMap.put(buttonEum, button);
 30  0
         }
 31  
 
 32  
 }