Examples of SpecialEvent


Examples of com.google.gwt.query.client.plugins.events.EventsListener.SpecialEvent

   *
   * @param htmlEvent An string representing the desired html event.
   * @functions a set of function to run if the event is not canceled.
   */
  public Events triggerHtmlEvent(String htmlEvent, Object[] datas, final Function... functions) {
    SpecialEvent specialEvent = EventsListener.special.get(htmlEvent);
    boolean isSpecialEvent = specialEvent != null;

    String originalEventName = htmlEvent;
    String delegateEventName = isSpecialEvent ? specialEvent.getDelegateType() : htmlEvent;

    NativeEvent e = document.createHtmlEvent(delegateEventName, true, true);

    if (isSpecialEvent) {
      GqEvent.setOriginalEventType(e, originalEventName);
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.