Package com.google.gwt.dom.client

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


          Element target = realEvent.getEventTarget().cast();
          if (!"body".equals(target.getTagName().toLowerCase())) {
            return;
          }
          // Test that the event is meaningful (and stop bubbling if it is not).
          SignalEvent signal = SignalEventImpl.create(realEvent.<Event>cast(), true);
          if (signal != null) {
            KeyCombo key = EventWrapper.getKeyCombo(signal);
            if (globalHandler.onKeySignal(key)) {
              event.preventDefault();
            }
View Full Code Here


    if ("submit".equals(htmlEvent)){
      Function submitFunction = new Function() {
        public void f(Element e) {
          // first submit the form then call the others functions
          if (FormElement.is(e)) {
            e.<FormElement>cast().submit();
          }
          callHandlers(e, getEvent(), functions);
        }
      };
      dispatchEvent(e, datas, submitFunction);
View Full Code Here

      Element target = realEvent.getEventTarget().cast();
      if (!"body".equals(target.getTagName().toLowerCase())) {
        return;
      }
      // Test that the event is meaningful (and stop bubbling if it is not).
      SignalEvent signal = SignalEventImpl.create(realEvent.<Event>cast(), true);
      if (signal != null) {
        KeyCombo key = EventWrapper.getKeyCombo(signal);
        if (globalHandler.onKeySignal(key)) {
          event.preventDefault();
        }
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.