List of usage examples for com.google.gwt.dom.client BrowserEvents TOUCHSTART
String TOUCHSTART
To view the source code for com.google.gwt.dom.client BrowserEvents TOUCHSTART.
Click Source Link
From source file:com.vaadin.v7.client.widget.grid.selection.MultiSelectionRenderer.java
License:Apache License
@Override public CheckBox createWidget() { final CheckBox checkBox = GWT.create(CheckBox.class); checkBox.setStylePrimaryName(grid.getStylePrimaryName() + SELECTION_CHECKBOX_CLASSNAME); CheckBoxEventHandler handler = new CheckBoxEventHandler(checkBox); // Sink events checkBox.sinkBitlessEvent(BrowserEvents.MOUSEDOWN); checkBox.sinkBitlessEvent(BrowserEvents.TOUCHSTART); checkBox.sinkBitlessEvent(BrowserEvents.CLICK); // Add handlers checkBox.addMouseDownHandler(handler); checkBox.addTouchStartHandler(handler); checkBox.addClickHandler(handler);/*from ww w . jav a 2 s . c o m*/ grid.addHandler(handler, GridEnabledEvent.TYPE); checkBox.setEnabled(grid.isEnabled()); return checkBox; }
From source file:gwt.material.design.client.MaterialWidgetTestCase.java
License:Apache License
public void fireTouchStartEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.TOUCHSTART, false, false), widget); }