List of usage examples for com.google.gwt.event.dom.client MouseDownHandler onMouseDown
void onMouseDown(MouseDownEvent event);
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()); }