/** * Stops the propagation of the underlying native event. */ public void stopPropagation() { assertLive(); nativeEvent.stopPropagation(); } }
/** * Stops the event from being propagated to parent elements. */ public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); }
/** * Stops the event from being propagated to parent elements. */ public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); }
public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); } }
public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); } }
public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); } }
public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); } }
public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); } }
/** * Stops the event from being propagated to parent elements. */ public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); }
/** * Stops the event from being propagated to parent elements. */ public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); }
public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); } }
public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); } }
public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); } }
public final void stopPropagation() { if (nativeEvent == null) return; nativeEvent.stopPropagation(); } }
@Override public void onPreviewNativeEvent(NativePreviewEvent event) { if (Event.ONCLICK == event.getTypeInt()) { Point clickPoint = new Point( event.getNativeEvent().getClientX(), event.getNativeEvent().getClientY()); /* * In mobile browsers, when the user touches on the screen, drag * his finger across and take his finger off, the browser fires a * click event at the position where the touch start happen. This * click event is called "ghost click". This click is not intended by * the user and thus needs to be busted. * Also, while the panel is scrolling, if the user taps on the screen * we want to stop the scrolling and bust the click event that's fired * because the user probably didn't mean to click on something. */ if (isClickScrollTriggeringTouch(clickPoint) || isClickTouchPositionDuringMomentum(clickPoint)) { event.cancel(); event.getNativeEvent().stopPropagation(); event.getNativeEvent().preventDefault(); } } } });
private Handler<GWTEdge> edgeClickHandler(){ return new Handler<GWTEdge>() { @Override public void call(GWTEdge edge, int index) { m_serverRpc.edgeClicked(edge.getId()); D3.getEvent().preventDefault(); D3.getEvent().stopPropagation(); } }; }
@Override public void onDrag(Element elem) { int clientX = D3.getEvent().getClientX() - m_offsetX; int clientY = D3.getEvent().getClientY() - m_offsetY; setMarquee( Math.min(m_x1, clientX), Math.min(m_y1, clientY), Math.abs(m_x1 - clientX), Math.abs(m_y1 - clientY) ); selectVertices(); D3.getEvent().stopPropagation(); D3.getEvent().preventDefault(); }
@Override public void onDragEnd(Element elem) { m_panObject = null; m_topologyComponent.updateMapPosition(); D3.getEvent().stopPropagation(); D3.getEvent().preventDefault(); } }
@Override public void onDrag(Element elem) { m_panObject.move(); D3.getEvent().stopPropagation(); D3.getEvent().preventDefault(); }
@Override public void onDragStart(Element elem) { m_panObject = new PanObject(m_topologyComponent.getTopologyView()); D3.getEvent().stopPropagation(); D3.getEvent().preventDefault(); }