本文整理汇总了Java中com.google.gwt.event.dom.client.TouchMoveHandler类的典型用法代码示例。如果您正苦于以下问题:Java TouchMoveHandler类的具体用法?Java TouchMoveHandler怎么用?Java TouchMoveHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TouchMoveHandler类属于com.google.gwt.event.dom.client包,在下文中一共展示了TouchMoveHandler类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addTouchMoveHandler
import com.google.gwt.event.dom.client.TouchMoveHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
return addDomHandler(handler, TouchMoveEvent.getType());
}
示例2: initMobile
import com.google.gwt.event.dom.client.TouchMoveHandler; //导入依赖的package包/类
private static void initMobile() {
// Prevent window scrolling
RootPanel.get().addDomHandler(new TouchMoveHandler() {
public void onTouchMove(TouchMoveEvent e) {
e.preventDefault();
}
}, TouchMoveEvent.getType());
Window.scrollTo(0, 1);
new Timer() {
public void run() {
Window.scrollTo(0, 1);
}
}.schedule(1000);
// Determine current window orientation
if (getWindowHeight() < getWindowWidth()) {
windowOrientation = "landscape";
}
// Create a native orientation change handler as resize handler isn't reliable on iOS 3.x
addNativeOrientationHandler();
// If Apple device then check if loaded from bookmark
if (!isBookmarked()) {
Window.alert("Please add this page to your Home Screen to view in fullscreen!");
}
}
示例3: addTouchMoveHandler
import com.google.gwt.event.dom.client.TouchMoveHandler; //导入依赖的package包/类
public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
return addDomHandler(handler, TouchMoveEvent.getType());
}
示例4: addTouchMoveHandler
import com.google.gwt.event.dom.client.TouchMoveHandler; //导入依赖的package包/类
@Override
public com.google.gwt.event.shared.HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
return this.addDomHandler(handler, TouchMoveEvent.getType());
}
示例5: addTouchMoveHandler
import com.google.gwt.event.dom.client.TouchMoveHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
return this.addDomHandler(handler, TouchMoveEvent.getType());
}
示例6: addTouchMoveHandler
import com.google.gwt.event.dom.client.TouchMoveHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
return viewport.addTouchMoveHandler(handler);
}