Package com.google.gwt.user.client

Examples of com.google.gwt.user.client.EventListener


    }
    final com.google.gwt.user.client.Element target = eventTarget.cast();

    // Get the event listener.
    com.google.gwt.user.client.Element curElem = target;
    EventListener listener = DOM.getEventListener(curElem);
    while (curElem != null && listener == null) {
      curElem = curElem.getParentElement().cast();
      listener = (curElem == null) ? null : DOM.getEventListener(curElem);
    }
View Full Code Here


  public ElementBinding(final StyleBindingsRegistry registery, final Element element, final Object beanInstance) {
    this.element = element;
    this.originalEventListener = DOM.getEventListener(element);
    this.beanInstance = beanInstance;
   
    this.newListener = new EventListener() {
      @Override
      public void onBrowserEvent(Event event) {
        if (event.getTypeInt() == Event.ONCHANGE) {
          registery.updateStyles();
        }
View Full Code Here

        setUrls(server.getUrl());

        // Trigger authentication using a hidden iframe. This way also Safari will show the login dialog
        Element iframe = Document.get().getElementById(IFRAME_ID).cast();
        DOM.sinkEvents(iframe, ONLOAD);
        DOM.setEventListener(iframe, new EventListener() {
            @Override
            public void onBrowserEvent(final Event event) {
                if (DOM.eventGetType(event) == ONLOAD) {
                    control.proceed();
                }
View Full Code Here

        setUrls(server.getUrl());

        // Trigger authentication using a hidden iframe. This way also Safari will show the login dialog
        Element iframe = Document.get().getElementById(IFRAME_ID).cast();
        DOM.sinkEvents(iframe, ONLOAD);
        DOM.setEventListener(iframe, new EventListener() {
            @Override
            public void onBrowserEvent(final Event event) {
                if (DOM.eventGetType(event) == ONLOAD) {
                    control.proceed();
                }
View Full Code Here

      public void storeUpdate(StoreEvent se) {
        onUpdate(ds, se.model);
      }

    };
    headerListener = new EventListener() {

      public void onBrowserEvent(Event event) {
        switch (DOM.eventGetType(event)) {
          case Event.ONMOUSEOVER:
            handleHdOver(event);
            break;
          case Event.ONMOUSEOUT:
            handleHdOut(event);
            break;
          case Event.ONMOUSEMOVE:
            handleHdMove(event);
            break;
          case Event.ONCLICK:
            handleHdDown(event);
            break;
        }
      }

    };

    scrollListener = new EventListener() {
      public void onBrowserEvent(Event event) {
        if (event.getTypeInt() == Event.ONSCROLL) {
          syncScroll();
        }
      }
View Full Code Here

      trigger.setVisible(false);
    }

    super.onRender(target, index);

    triggerListener = new EventListener() {
      public void onBrowserEvent(Event event) {
        FieldEvent ce = new FieldEvent(TriggerField.this);
        ce.event = event;
        ce.type = DOM.eventGetType(event);
        ce.stopEvent();
View Full Code Here

        }, ClickEvent.getType());
        // addClickHandler(MyClickEditProfileHandler);

        Element countr = (Element) country_container.getElement().getChild(0);

        DOM.setEventListener(countr, new EventListener() {

            @Override
            public void onBrowserEvent(Event event) {

                if (password.equals(cpassword)) {
View Full Code Here

    preview.setAutoHide(false);
    el.addEventsSunk(Event.ONMOUSEDOWN | Event.ONMOUSEOUT | Event.ONMOUSEOVER);
  }

  public void doAttach() {
    DOM.setEventListener(el.dom, new EventListener() {
      public void onBrowserEvent(Event event) {
        switch (event.getTypeInt()) {
          case Event.ONMOUSEDOWN:
            handleMouseDown();
            break;
View Full Code Here

     */
    public static <T> T findWidget(Element element,
            Class<? extends Widget> class1) {
        if (element != null) {
            /* First seek for the first EventListener (~Widget) from dom */
            EventListener eventListener = null;
            while (eventListener == null && element != null) {
                eventListener = Event.getEventListener(element);
                if (eventListener == null) {
                    element = (Element) element.getParentElement();
                }
View Full Code Here

    com.google.gwt.user.client.Element target = eventTarget.cast();

    // Get the event listener, which is the first widget that handles the
    // specified event type.
    String typeName = event.getType();
    EventListener listener = DOM.getEventListener(target);
    while (target != null && listener == null) {
      target = target.getParentElement().cast();
      if (target != null && isNonBubblingEventHandled(target, typeName)) {
        // The target handles the event, so this must be the event listener.
        listener = DOM.getEventListener(target);
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.EventListener

Copyright © 2018 www.massapicom. 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.