Coverage Report - org.kuali.student.common.ui.client.widgets.ClickablePanel
 
Classes in this File Line Coverage Branch Coverage Complexity
ClickablePanel
0%
0/15
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.common.ui.client.widgets;
 17  
 
 18  
 import com.google.gwt.event.dom.client.ClickEvent;
 19  
 import com.google.gwt.event.dom.client.ClickHandler;
 20  
 import com.google.gwt.event.dom.client.HasAllKeyHandlers;
 21  
 import com.google.gwt.event.dom.client.HasAllMouseHandlers;
 22  
 import com.google.gwt.event.dom.client.HasClickHandlers;
 23  
 import com.google.gwt.event.dom.client.KeyDownEvent;
 24  
 import com.google.gwt.event.dom.client.KeyDownHandler;
 25  
 import com.google.gwt.event.dom.client.KeyPressEvent;
 26  
 import com.google.gwt.event.dom.client.KeyPressHandler;
 27  
 import com.google.gwt.event.dom.client.KeyUpEvent;
 28  
 import com.google.gwt.event.dom.client.KeyUpHandler;
 29  
 import com.google.gwt.event.dom.client.MouseDownEvent;
 30  
 import com.google.gwt.event.dom.client.MouseDownHandler;
 31  
 import com.google.gwt.event.dom.client.MouseMoveEvent;
 32  
 import com.google.gwt.event.dom.client.MouseMoveHandler;
 33  
 import com.google.gwt.event.dom.client.MouseOutEvent;
 34  
 import com.google.gwt.event.dom.client.MouseOutHandler;
 35  
 import com.google.gwt.event.dom.client.MouseOverEvent;
 36  
 import com.google.gwt.event.dom.client.MouseOverHandler;
 37  
 import com.google.gwt.event.dom.client.MouseUpEvent;
 38  
 import com.google.gwt.event.dom.client.MouseUpHandler;
 39  
 import com.google.gwt.event.dom.client.MouseWheelEvent;
 40  
 import com.google.gwt.event.dom.client.MouseWheelHandler;
 41  
 import com.google.gwt.event.shared.HandlerRegistration;
 42  
 import com.google.gwt.user.client.ui.SimplePanel;
 43  
 import com.google.gwt.user.client.ui.Widget;
 44  
 
 45  
 public class ClickablePanel extends SimplePanel implements HasAllMouseHandlers, HasClickHandlers, HasAllKeyHandlers{
 46  
           
 47  
         public ClickablePanel(Widget child){
 48  0
                   this();
 49  0
                   setWidget(child);
 50  0
           }
 51  
         
 52  
           public ClickablePanel() {
 53  0
                   super();
 54  0
           }
 55  
 
 56  
           public HandlerRegistration addClickHandler(ClickHandler handler) {
 57  0
                     return addDomHandler(handler, ClickEvent.getType());
 58  
           }
 59  
           
 60  
           public HandlerRegistration addKeyDownHandler(KeyDownHandler handler) {
 61  0
             return addDomHandler(handler, KeyDownEvent.getType());
 62  
           }
 63  
 
 64  
           public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) {
 65  0
             return addDomHandler(handler, KeyPressEvent.getType());
 66  
           }
 67  
 
 68  
           public HandlerRegistration addKeyUpHandler(KeyUpHandler handler) {
 69  0
             return addDomHandler(handler, KeyUpEvent.getType());
 70  
           }
 71  
 
 72  
           public HandlerRegistration addMouseDownHandler(MouseDownHandler handler) {
 73  0
             return addDomHandler(handler, MouseDownEvent.getType());
 74  
           }
 75  
           
 76  
           public HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) {
 77  0
             return addDomHandler(handler, MouseMoveEvent.getType());
 78  
           }
 79  
 
 80  
           public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
 81  0
             return addDomHandler(handler, MouseOutEvent.getType());
 82  
           }
 83  
 
 84  
           public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
 85  0
             return addDomHandler(handler, MouseOverEvent.getType());
 86  
           }
 87  
 
 88  
           public HandlerRegistration addMouseUpHandler(MouseUpHandler handler) {
 89  0
             return addDomHandler(handler, MouseUpEvent.getType());
 90  
           }
 91  
 
 92  
           public HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler) {
 93  0
             return addDomHandler(handler, MouseWheelEvent.getType());
 94  
           }
 95  
 }