Examples of addEventListener()


Examples of com.sun.grid.jgdi.management.JGDIProxy.addEventListener()

        subscription.add(EventTypeEnum.ExecHostDel);
        subscription.add(EventTypeEnum.ExecHostMod);
       
        log.info("addEventListener");

        jgdiProxy.addEventListener(this);
       
        log.info("setSubscription");
       
        jgdiProxy.getProxy().setSubscription(subscription);
View Full Code Here

Examples of com.sun.star.accessibility.XAccessibleEventBroadcaster.addEventListener()

                XAccessibleEventBroadcaster xAccessibleEventBroadcaster =
                    (XAccessibleEventBroadcaster) UnoRuntime.queryInterface(
                        XAccessibleEventBroadcaster.class, xAccessibleContext);
                if (xAccessibleEventBroadcaster != null) {
                    if (attach) {
                        xAccessibleEventBroadcaster.addEventListener(this);
                    } else {
                        xAccessibleEventBroadcaster.removeEventListener(this);
                    }
                }
            } catch (com.sun.star.uno.RuntimeException e) {
View Full Code Here

Examples of com.sun.star.document.XEventBroadcaster.addEventListener()

   */
  private void addEventListener(XEventListener xEventListener) {
    XEventBroadcaster xEventBroadcaster = (XEventBroadcaster) UnoRuntime.queryInterface(XEventBroadcaster.class,
        xComponent);
    if (xEventBroadcaster != null) {
      xEventBroadcaster.addEventListener(xEventListener);
    }
  }

  //----------------------------------------------------------------------------
  /**
 
View Full Code Here

Examples of com.sun.star.lang.XComponent.addEventListener()

        assure("Dictionary hasn't been removed properly", localRes);

        XComponent dicList = (XComponent) UnoRuntime.queryInterface(
                                     XComponent.class, xCList);
        XEventListener listen = new EventListener();
        dicList.addEventListener(listen);
        dicList.dispose();
        assure("dispose didn't work", disposed);
        dicList.removeEventListener(listen);

        DesktopTools.closeDoc(xDoc);
View Full Code Here

Examples of com.sun.star.text.XTextField.addEventListener()

   * @author Sebastian R�sgen
   */
  private void addEventListener(XEventListener xEventListener) {
    XTextField xTextField = (XTextField) UnoRuntime.queryInterface(
        XTextField.class, xDependentTextField);
    xTextField.addEventListener(wrapper);
  }

  // ----------------------------------------------------------------------------
  /**
   * Removes the low level listener on this field.
View Full Code Here

Examples of com.twitter.util.Promise.addEventListener()

        }
      });

    /* If the following compiles, variance annotations work (maybe!). */
    Promise<List<Integer>> promise = new Promise();
    promise.addEventListener(
      new FutureEventListener<Collection<Integer>>() {
        public void onSuccess(Collection<Integer> coll) {}
        public void onFailure(Throwable cause) {}
      });

View Full Code Here

Examples of com.vaadin.client.ui.VNotification.addEventListener()

                    }

                    private void failed() {
                        VNotification n = new VNotification();
                        n.addEventListener(new EventListener() {

                            @Override
                            public void notificationHidden(HideEvent event) {
                                recompileWidgetsetAndStartInDevMode(serverUrl);
                            }
View Full Code Here

Examples of com.vaadin.terminal.gwt.client.ui.VNotification.addEventListener()

            html.append("<br/><p><I style=\"font-size:0.7em\">");
            html.append(details);
            html.append("</I></p>");

            VNotification n = new VNotification(1000 * 60 * 45);
            n.addEventListener(new NotificationRedirect(url));
            n.show(html.toString(), VNotification.CENTERED_TOP,
                    VNotification.STYLE_SYSTEM);
        } else {
            redirect(url);
        }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.monitor.Monitor.addEventListener()

        this.engine = engine;
        this.gui = engine.getGUI();
        this.monitorMenu = createMonitorMenu();

        Monitor monitor = this.engine.getMonitor();
        monitor.addEventListener(this);
        monitor.getConfiguration().addEventListener(this);
    }

    /**
     * @return The JMenu.
View Full Code Here

Examples of elemental.dom.Element.addEventListener()

    final ListenerDidFire a = new ListenerDidFire();
    final ListenerDidFire b = new ListenerDidFire();
   
    // Ensure that addEventListener works.
    body.addEventListener("click", a, false);
    // Ensure that setOnClick also works.
    body.setOnclick(b);
   
    assertEquals(b, body.getOnclick());
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.