|  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.ConfirmCancelEnum;  | 
  |  5 |     | 
     | 
  |  6 |     | 
   import com.google.gwt.event.dom.client.ClickEvent;  | 
  |  7 |     | 
   import com.google.gwt.event.dom.client.ClickHandler;  | 
  |  8 |     | 
     | 
  |  9 |     | 
     | 
  |  10 |     | 
   public class ConfirmCancelGroup extends ButtonGroup<ConfirmCancelEnum>{ | 
  |  11 |     | 
           public ConfirmCancelGroup(){ | 
  |  12 |    0 |                    super();  | 
  |  13 |    0 |                    createButton(ConfirmCancelEnum.CONFIRM);  | 
  |  14 |    0 |                    createButton(ConfirmCancelEnum.CANCEL);  | 
  |  15 |    0 |            }  | 
  |  16 |     | 
     | 
  |  17 |     | 
           private void createButton(final ConfirmCancelEnum 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 |     | 
   }  |