Example usage for com.google.gwt.event.dom.client HandlesAllMouseEvents handle

List of usage examples for com.google.gwt.event.dom.client HandlesAllMouseEvents handle

Introduction

In this page you can find the example usage for com.google.gwt.event.dom.client HandlesAllMouseEvents handle.

Prototype

public static <H extends MouseDownHandler & MouseUpHandler & MouseOutHandler & MouseOverHandler & MouseMoveHandler & MouseWheelHandler> void handle(
        HasAllMouseHandlers source, H reciever) 

Source Link

Document

Convenience method used to handle all mouse events from an event source.

Usage

From source file:asquare.gwt.tests.mousebutton.client.Demo.java

License:Apache License

private Widget createDemoPanel() {
    VerticalPanel outer = new VerticalPanel();
    TextBox input = new TextBox();
    input.setText("Click Here");
    TextArea output = new TextArea();
    outer.add(input);//w  w  w  .j  a  v  a  2  s . c o m
    outer.add(output);

    MouseHandler handler = new MouseHandler(output);
    HandlesAllMouseEvents.handle(input, handler);
    return outer;
}