Examples of stopPropagation()


Examples of com.google.gwt.dom.client.NativeEvent.stopPropagation()

                    targetElement = Util.getElementFromPoint(x, y);
                    if (targetElement == null) {
                        // ApplicationConnection.getConsole().log(
                        // "Event on dragImage, ignored");
                        event.cancel();
                        nativeEvent.stopPropagation();
                        return;

                    } else {
                        // ApplicationConnection.getConsole().log(
                        // "Event on dragImage, target changed");
View Full Code Here

Examples of com.google.gwt.dom.client.NativeEvent.stopPropagation()

        @SuppressWarnings("unchecked")
        @Override
        public void onPreviewNativeEvent( NativePreviewEvent event ) {
            NativeEvent nativeEvent = event.getNativeEvent();
            nativeEvent.preventDefault();
            nativeEvent.stopPropagation();

            String eventType = nativeEvent.getType();
            int clientX = nativeEvent.getClientX();
            if ( eventType.equals( "mousemove" ) && mousedown ) {
                int absoluteLeft = el.getAbsoluteLeft();
View Full Code Here

Examples of com.google.gwt.dom.client.NativeEvent.stopPropagation()

            }

            if ( eventType.equals( "dblclick" ) ) {
                // Get column
                nativeEvent.preventDefault();
                nativeEvent.stopPropagation();
                double max = 0;
                startMeasuring();
                for ( E t : table.getVisibleItems() ) {
                    Object value = col.getValue( t );
                    SafeHtmlBuilder sb = new SafeHtmlBuilder();
View Full Code Here

Examples of com.google.gwt.dom.client.NativeEvent.stopPropagation()

                    targetElement = Util.getElementFromPoint(x, y);
                    if (targetElement == null) {
                        // ApplicationConnection.getConsole().log(
                        // "Event on dragImage, ignored");
                        event.cancel();
                        nativeEvent.stopPropagation();
                        return;

                    } else {
                        // ApplicationConnection.getConsole().log(
                        // "Event on dragImage, target changed");
View Full Code Here

Examples of com.google.gwt.event.dom.client.TouchMoveEvent.stopPropagation()

    scrollPanel.addScrollMoveHandler(new ScrollMoveEvent.Handler() {

      @Override
      public void onScrollMove(ScrollMoveEvent event) {
        TouchMoveEvent moveEvent = event.getEvent();
        moveEvent.stopPropagation();
        moveEvent.preventDefault();
      }
    });

    MGWT.addOrientationChangeHandler(new OrientationChangeHandler() {
View Full Code Here

Examples of com.google.gwt.user.client.Event.stopPropagation()

  protected void onMouseDown(RowClickEvent event) {
    Event e = event.getEvent();
    XElement target = e.getEventTarget().cast();
    if (appearance.isExpandElement(target)) {
      e.stopPropagation();
      e.preventDefault();
      XElement row = grid.getView().findRow(target).cast();
      toggleRow(row);
    }
  }
View Full Code Here

Examples of com.google.gwt.user.client.Event.stopPropagation()

  protected void onMouseDown(RowClickEvent event) {
    Event e = event.getEvent();
    XElement target = e.getEventTarget().cast();
    if (appearance.isExpandElement(target)) {
      e.stopPropagation();
      e.preventDefault();
      XElement row = grid.getView().findRow(target).cast();
      toggleRow(row);
    }
  }
View Full Code Here

Examples of com.google.gwt.user.client.Event.stopPropagation()

                default:
                    // do nothing
            }
            event.cancel();
            nativeEvent.preventDefault();
            nativeEvent.stopPropagation();
        }

    }

    /** Animation enabled flag. */
 
View Full Code Here

Examples of com.google.gwt.user.client.Event.stopPropagation()

          // of the exact keycode. The combination of preventDefault() and stopPropagation() is
          // necessary in both FF and IE. As a historical note, one can do without the
          // stopPropagation() in FF if one also does a preventDefault on keypress,
          // but this is little more than a curiosity.
          nativeEvent.preventDefault();
          nativeEvent.stopPropagation();
        }
      }
    });
  }
 
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.event.XEvent.stopPropagation()

    XEvent e = ne.<XEvent> cast();

    if (lastSelected != null && enableNavKeys) {
      if (kc == KeyCodes.KEY_PAGEUP) {
        e.stopPropagation();
        e.preventDefault();
        select(0, false);
        grid.getView().focusRow(0);
      } else if (kc == KeyCodes.KEY_PAGEDOWN) {
        e.stopPropagation();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.