Example usage for com.google.gwt.event.dom.client MouseDownHandler onMouseDown

List of usage examples for com.google.gwt.event.dom.client MouseDownHandler onMouseDown

Introduction

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

Prototype

void onMouseDown(MouseDownEvent event);

Source Link

Document

Called when MouseDown is fired.

Usage

From source file:gwt.material.design.components.client.base.widget.MaterialWidget.java

License:Apache License

@Override
public HandlerRegistration addMouseDownHandler(final MouseDownHandler handler) {
    return addDomHandler(event -> {
        if (isEnabled())
            handler.onMouseDown(event);
    }, MouseDownEvent.getType());//w  w  w.  j a v a  2  s  . co m
}

From source file:org.rstudio.studio.client.workbench.views.source.editors.text.status.StatusBarElementWidget.java

License:Open Source License

public HandlerRegistration addMouseDownHandler(final MouseDownHandler handler) {
    return addDomHandler(new MouseDownHandler() {
        @Override//from   w ww  .java  2  s  .  co  m
        public void onMouseDown(MouseDownEvent event) {
            if (clicksEnabled_)
                handler.onMouseDown(event);
        }
    }, MouseDownEvent.getType());
}