本文整理了Java中com.google.gwt.user.client.Event.releaseCapture()
方法的一些代码示例,展示了Event.releaseCapture()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.releaseCapture()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Event
类名称:Event
方法名:releaseCapture
[英]Releases mouse capture on the given element. Calling this method has no effect if the element does not currently have mouse capture.
[中]
代码示例来源:origin: com.google.gwt/gwt-servlet
Event.releaseCapture(getElement());
event.preventDefault();
break;
代码示例来源:origin: kiegroup/appformer
@Override
public void onMouseUp(final MouseUpEvent event) {
mouseDown = false;
glassElem.removeFromParent();
Event.releaseCapture(getElement());
}
},
代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client
@Override
public void onMouseUp(final MouseUpEvent event) {
mouseDown = false;
glassElem.removeFromParent();
Event.releaseCapture(getElement());
}
},
代码示例来源:origin: kiegroup/appformer
@Override
public void onMouseUp(MouseUpEvent event) {
getElement().getStyle().setProperty("cursor",
"default");
mouseDown = false;
glassElem.removeFromParent();
Event.releaseCapture(getElement());
}
},
代码示例来源:origin: org.uberfire/uberfire-simple-docks-client
@Override
public void onMouseUp(MouseUpEvent event) {
getElement().getStyle().setProperty("cursor",
"default");
mouseDown = false;
glassElem.removeFromParent();
Event.releaseCapture(getElement());
}
},
代码示例来源:origin: com.vaadin.addon/vaadin-touchkit-agpl
@Override
public void onTouchEnd(TouchEndEvent event) {
Event.releaseCapture(getElement());
event.stopPropagation();
event.preventDefault();
capturing = false;
}
}, TouchEndEvent.getType());
代码示例来源:origin: com.vaadin.addon/vaadin-touchkit-agpl
@Override
public void onMouseUp(MouseUpEvent event) {
Event.releaseCapture(getElement());
event.stopPropagation();
event.preventDefault();
capturing = false;
}
}, MouseUpEvent.getType());
代码示例来源:origin: geogebra/geogebra
@Override
public void onTouchEnd(TouchEndEvent event) {
if (!field.isEnabled()) {
return;
}
Event.releaseCapture(widget.getElement());
this.pointerIsDown = false;
handler.onPointerUp(getX(event), getY(event));
}
代码示例来源:origin: geogebra/geogebra
@Override
public void onMouseUp(MouseUpEvent event) {
if (!field.isEnabled() || SelectionBox.touchSelection) {
return;
}
Event.releaseCapture(widget.getElement());
this.pointerIsDown = false;
handler.onPointerUp(field.mouseX(event.getX()),
field.mouseY(event.getY()));
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
@Override
public void onPreviewNativeEvent(NativePreviewEvent event) {
if (event.getTypeInt() == Event.ONMOUSEUP
|| event.getTypeInt() == Event.ONTOUCHEND
|| event.getTypeInt() == Event.ONTOUCHCANCEL) {
if (mouseUpHandlerReg != null) {
mouseUpHandlerReg.removeHandler();
if (currentDraggedWidget != null) {
currentDraggedWidget.removeStyleName(
ACTIVE_DRAG_SOURCE_STYLENAME);
if (dragImageProvider != null) {
com.google.gwt.dom.client.Element dragImageElement = dragImageProvider
.getDragImageElement(
currentDraggedWidget);
if (dragImageElement != null) {
dragImageElement.removeClassName(
ACTIVE_DRAG_SOURCE_STYLENAME);
}
}
currentDraggedWidget = null;
}
}
// Ensure capturing is turned off at mouse up
Event.releaseCapture(RootPanel.getBodyElement());
}
}
});
代码示例来源:origin: org.vaadin.addons/dragdroplayouts
@Override
public void onPreviewNativeEvent(NativePreviewEvent event) {
if (event.getTypeInt() == Event.ONMOUSEUP
|| event.getTypeInt() == Event.ONTOUCHEND
|| event.getTypeInt() == Event.ONTOUCHCANCEL) {
if (mouseUpHandlerReg != null) {
mouseUpHandlerReg.removeHandler();
if (currentDraggedWidget != null) {
currentDraggedWidget.removeStyleName(
ACTIVE_DRAG_SOURCE_STYLENAME);
if (dragImageProvider != null) {
com.google.gwt.dom.client.Element dragImageElement = dragImageProvider
.getDragImageElement(
currentDraggedWidget);
if (dragImageElement != null) {
dragImageElement.removeClassName(
ACTIVE_DRAG_SOURCE_STYLENAME);
}
}
currentDraggedWidget = null;
}
}
// Ensure capturing is turned off at mouse up
Event.releaseCapture(RootPanel.getBodyElement());
}
}
});
代码示例来源:origin: com.vaadin.addon/vaadin-touchkit-agpl
protected void dragEnd(HumanInputEvent event) {
if (dragging) {
Event.releaseCapture(getElement());
VConsole.log("Drag end");
dragging = false;
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
Event.releaseCapture(getElement());
event.preventDefault();
break;
代码示例来源:origin: net.wetheinter/gwt-user
Event.releaseCapture(getElement());
event.preventDefault();
break;
代码示例来源:origin: kiegroup/appformer
Event.releaseCapture(getElement());
event.preventDefault();
内容来源于网络,如有侵权,请联系作者删除!