| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |  package org.kuali.student.common.ui.client.widgets; | 
  | 17 |  |   | 
  | 18 |  |  import org.kuali.student.common.ui.client.widgets.impl.KSButtonImpl; | 
  | 19 |  |   | 
  | 20 |  |  import com.google.gwt.core.client.GWT; | 
  | 21 |  |  import com.google.gwt.event.dom.client.ClickHandler; | 
  | 22 |  |  import com.google.gwt.event.dom.client.MouseOutHandler; | 
  | 23 |  |  import com.google.gwt.event.dom.client.MouseOverHandler; | 
  | 24 |  |  import com.google.gwt.event.shared.HandlerRegistration; | 
  | 25 |  |   | 
  | 26 |  |   | 
  | 27 |  |   | 
  | 28 |  |   | 
  | 29 |  |   | 
  | 30 |  |   | 
  | 31 |  |   | 
  | 32 |  |   | 
  | 33 |  |   | 
  | 34 |  |  public class KSButton extends KSButtonAbstract{ | 
  | 35 |  |           | 
  | 36 | 0 |          KSButtonAbstract button = GWT.create(KSButtonImpl.class); | 
  | 37 |  |           | 
  | 38 |  |          public boolean isEnabled() { | 
  | 39 | 0 |                  return button.isEnabled(); | 
  | 40 |  |          } | 
  | 41 |  |   | 
  | 42 |  |          public void setEnabled(boolean enabled) { | 
  | 43 | 0 |                  button.setEnabled(enabled); | 
  | 44 | 0 |          } | 
  | 45 |  |           | 
  | 46 | 0 |          public KSButton(){ | 
  | 47 | 0 |                  this.init(); | 
  | 48 | 0 |                  this.initWidget(button); | 
  | 49 | 0 |          } | 
  | 50 |  |           | 
  | 51 | 0 |          public KSButton(String text, ClickHandler handler){ | 
  | 52 | 0 |                  this.init(text, handler); | 
  | 53 | 0 |                  this.initWidget(button); | 
  | 54 | 0 |          }         | 
  | 55 |  |           | 
  | 56 | 0 |          public KSButton(String text){ | 
  | 57 | 0 |                  this.init(text); | 
  | 58 | 0 |                  this.initWidget(button); | 
  | 59 | 0 |          } | 
  | 60 |  |           | 
  | 61 | 0 |          public KSButton(String text, ButtonStyle style){ | 
  | 62 | 0 |                  this.init(text, style); | 
  | 63 | 0 |                  this.initWidget(button); | 
  | 64 | 0 |          } | 
  | 65 |  |   | 
  | 66 | 0 |      public KSButton(String text, ButtonStyle style, ClickHandler handler){ | 
  | 67 | 0 |          this.init(text, style, handler); | 
  | 68 | 0 |          this.initWidget(button); | 
  | 69 | 0 |      }    | 
  | 70 |  |       | 
  | 71 |  |      public void setText(String text){ | 
  | 72 | 0 |          button.setText(text); | 
  | 73 | 0 |      } | 
  | 74 |  |       | 
  | 75 |  |          @Override | 
  | 76 |  |          public HandlerRegistration addClickHandler(ClickHandler handler) { | 
  | 77 | 0 |                  return button.addClickHandler(handler); | 
  | 78 |  |          } | 
  | 79 |  |   | 
  | 80 |  |          @Override | 
  | 81 |  |          public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) { | 
  | 82 | 0 |                  return button.addMouseOverHandler(handler); | 
  | 83 |  |          } | 
  | 84 |  |   | 
  | 85 |  |          @Override | 
  | 86 |  |          public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { | 
  | 87 | 0 |                  return button.addMouseOutHandler(handler); | 
  | 88 |  |          } | 
  | 89 |  |   | 
  | 90 |  |      @Override | 
  | 91 |  |      public void init() { | 
  | 92 | 0 |          button.init(); | 
  | 93 | 0 |      }         | 
  | 94 |  |           | 
  | 95 |  |          @Override | 
  | 96 |  |          public void init(String text) { | 
  | 97 | 0 |                  button.init(text); | 
  | 98 | 0 |          } | 
  | 99 |  |   | 
  | 100 |  |          @Override | 
  | 101 |  |          public void init(String text, ButtonStyle style) { | 
  | 102 | 0 |                  button.init(text, style);                 | 
  | 103 | 0 |          } | 
  | 104 |  |   | 
  | 105 |  |      public void init(String text, ButtonStyle style, ClickHandler handler) { | 
  | 106 | 0 |          button.init(text, style, handler);        | 
  | 107 | 0 |      }         | 
  | 108 |  |           | 
  | 109 |  |          @Override | 
  | 110 |  |          public void init(String text, ClickHandler handler) { | 
  | 111 | 0 |                  button.init(text, handler); | 
  | 112 | 0 |          } | 
  | 113 |  |           | 
  | 114 |  |      @Override | 
  | 115 |  |      public void addStyleName(String style) { | 
  | 116 | 0 |          button.addStyleName(style); | 
  | 117 | 0 |      } | 
  | 118 |  |   | 
  | 119 |  |      @Override | 
  | 120 |  |      public void removeStyleName(String style) { | 
  | 121 | 0 |          button.removeStyleName(style); | 
  | 122 | 0 |      } | 
  | 123 |  |   | 
  | 124 |  |      @Override | 
  | 125 |  |      public void setStyleName(String style) { | 
  | 126 | 0 |          button.setStyleName(style); | 
  | 127 | 0 |      }         | 
  | 128 |  |  } |