Package com.google.gwt.dom.client

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


      if (cancelButton_ == null)
      {
         if ((okButton_ != null) && okButton_.isEnabled())
         {
            nativeEvent.preventDefault();
            nativeEvent.stopPropagation();
            event.cancel();
            okButton_.click();
         }
      }
      else if (cancelButton_.isEnabled())
View Full Code Here


         }
      }
      else if (cancelButton_.isEnabled())
      {
         nativeEvent.preventDefault();
         nativeEvent.stopPropagation();
         event.cancel();
         cancelButton_.click();
      }
   }
 
View Full Code Here

      if (!Element.is(eventTarget))
        return;
      final Element target = event.getEventTarget().cast();

      // always squelch default handling (when there is a handler)
      event.stopPropagation();
      event.preventDefault();
     
      // find the table cell element then get its parent and cast to row
      TableCellElement tableCell = findNearestParentCell(target);
      if (tableCell == null)
View Full Code Here

            if( ! ne.getType().equals("keydown")) return;
            int keycode = ne.getKeyCode();
            if(ne.getCtrlKey() && ( keycode == 't' || keycode == 'T' ))
            {
              event.cancel();
              ne.stopPropagation();
              run(new Terminal());

            }else if(ne.getCtrlKey() &&  ( keycode == 'e' || keycode == 'E' ))
            {
              event.cancel();
View Full Code Here

              run(new Terminal());

            }else if(ne.getCtrlKey() &&  ( keycode == 'e' || keycode == 'E' ))
            {
              event.cancel();
              ne.stopPropagation();
              run(new Explorer());
             
            }else if(ne.getCtrlKey() &&  ( keycode == 'l' || keycode == 'L' ))
            {
              event.cancel();
View Full Code Here

              run(new Explorer());
             
            }else if(ne.getCtrlKey() &&  ( keycode == 'l' || keycode == 'L' ))
            {
              event.cancel();
              ne.stopPropagation();
              new Login(systemcall);
              //new com.zaranux.client.explorer.Explorer().run();
             
            }else if(ne.getCtrlKey() && keycode == KeyCodes.KEY_PAGEDOWN)
            {
View Full Code Here

              //new com.zaranux.client.explorer.Explorer().run();
             
            }else if(ne.getCtrlKey() && keycode == KeyCodes.KEY_PAGEDOWN)
            {
              event.cancel();
              ne.stopPropagation();
              screen.previousView();
            }else if(ne.getCtrlKey() && keycode == KeyCodes.KEY_PAGEUP)
            {
              event.cancel();
              ne.stopPropagation();
View Full Code Here

              ne.stopPropagation();
              screen.previousView();
            }else if(ne.getCtrlKey() && keycode == KeyCodes.KEY_PAGEUP)
            {
              event.cancel();
              ne.stopPropagation();
              screen.nextView();
            }
        }
    }
   
View Full Code Here

                    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

    }

    private static NativeEvent getEventAndPreventPropagation( final NativePreviewEvent event ) {
        final NativeEvent nativeEvent = event.getNativeEvent();
        nativeEvent.preventDefault();
        nativeEvent.stopPropagation();
        return nativeEvent;
    }

    private static void setLine( final Style style,
                                 final int width,
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.