本文整理了Java中com.google.gwt.user.client.ui.Widget.addBitlessDomHandler()
方法的一些代码示例,展示了Widget.addBitlessDomHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Widget.addBitlessDomHandler()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Widget
类名称:Widget
方法名:addBitlessDomHandler
[英]For browsers which do not leak, adds a native event handler to the widget. Note that, unlike the #addDomHandler(EventHandler,com.google.gwt.event.dom.client.DomEvent.Type)implementation, there is no need to attach the widget to the DOM in order to cause the event handlers to be attached.
[中]对于browsers which do not leak,向小部件添加本机事件处理程序。请注意,与#addDomHandler(EventHandler,com.google.gwt.event.dom.client.DomEvent.Type)实现不同,无需将小部件附加到dom以使事件处理程序被附加。
代码示例来源:origin: geogebra/geogebra
/**
* Register this as pointer event handler for a widget.
*
* @param html
* widget
*/
public void listenTo(Widget html) {
if (html == null) {
return;
}
widget = html;
html.addDomHandler(this, MouseDownEvent.getType());
html.addDomHandler(this, MouseMoveEvent.getType());
html.addDomHandler(this, MouseUpEvent.getType());
html.addBitlessDomHandler(this, TouchStartEvent.getType());
html.addBitlessDomHandler(this, TouchMoveEvent.getType());
html.addBitlessDomHandler(this, TouchEndEvent.getType());
html.addDomHandler(this, DoubleClickEvent.getType());
}
代码示例来源:origin: geogebra/geogebra
.addBitlessDomHandler(
new TouchEndHandler() {
@Override
代码示例来源:origin: geogebra/geogebra
w.addBitlessDomHandler(new TouchStartHandler() {
@Override
public void onTouchStart(TouchStartEvent event) {
内容来源于网络,如有侵权,请联系作者删除!