Examples of addListener()


Examples of com.caucho.loader.EnvironmentClassLoader.addListener()

        = (DestructionListener) loader.getAttribute("caucho.destroy");

      if (listener == null) {
        listener = new DestructionListener();
        loader.setAttribute("caucho.destroy", listener);
        loader.addListener(listener);
      }

      listener.addValue(comp, value);
    }
  }
View Full Code Here

Examples of com.cburch.logisim.gui.main.Selection.addListener()

 
  @Override
  public void select(Canvas canvas) {
    Selection sel = canvas.getSelection();
    if (!selectionsAdded.contains(sel)) {
      sel.addListener(selListener);
    }
  }
 
  @Override
  public void deselect(Canvas canvas) {
View Full Code Here

Examples of com.datastax.driver.core.ResultSetFuture.addListener()

      @Override
      public Cancellable doInSession(Session s) throws DataAccessException {
        Statement statement = new SimpleStatement(cql);
        addQueryOptions(statement, options);
        ResultSetFuture rsf = s.executeAsync(statement);
        rsf.addListener(listener, executor);
        return new ResultSetFutureCancellable(rsf);
      }
    });
  }
View Full Code Here

Examples of com.din.din.webapp.beans.LoginBean.addListener()

  public static void addListener(LoginListener listener) {
    FacesContext context = FacesContext.getCurrentInstance();
    if(context != null) {
      LoginBean sessionLoginInfo = getSessionLoginInfo(context);
      if(sessionLoginInfo != null) {
        sessionLoginInfo.addListener(listener);
      }
    }
  }
 
  public void beforePhase(PhaseEvent event) {
View Full Code Here

Examples of com.dotcms.repackage.org.junit.runner.JUnitCore.addListener()

        Logger.info( "Generating XML report in " + reportDirectory.getAbsolutePath() );

        //Adding a listener for the running test
        TestXmlRingingListener testXmlRingingListener = new TestXmlRingingListener( reportDirectory );
        jUnitCore.addListener( testXmlRingingListener );

        try {
            Class clazz = Class.forName( className );
            testXmlRingingListener.startFile( clazz );
            jUnitCore.run( clazz );
View Full Code Here

Examples of com.droidkit.actors.concurrency.Future.addListener()

                    try {
                        Future future = (Future) req.getMethod().invoke(this, req.getArgs());
                        if (future instanceof ResultFuture) {
                            req.getFuture().doComplete(future.get());
                        } else if (future instanceof TypedFuture) {
                            future.addListener(new FutureCallback() {
                                @Override
                                public void onResult(Object result) {
                                    req.getFuture().doComplete(result);
                                }
View Full Code Here

Examples of com.droidkit.actors.tasks.AskFuture.addListener()

     * @param futures  futures from ask
     * @return future
     */
    public AskFuture combine(AskCallback<Object[]> callback, AskFuture... futures) {
        AskFuture future = combine(futures);
        future.addListener(callback);
        return future;
    }

    /**
     * Ask TaskActor for result
View Full Code Here

Examples of com.esotericsoftware.kryonet.Client.addListener()

    // ----

    Client client = new Client();
    register(client.getKryo());
    startEndPoint(client);
    client.addListener(new Listener() {
      public void received (Connection connection, Object object) {
        if (object instanceof SomeData) {
          SomeData data = (SomeData)object;
          System.out.println(data.stuff[3]);
        } else if (object instanceof SomeOtherData) {
View Full Code Here

Examples of com.esotericsoftware.kryonet.Server.addListener()

    data.text = "some text here aaaaaaabbbbbccccc";
    data.stuff = new short[] {1, 2, 3, 4, 5, 6, 7, 8};

    startEndPoint(server);
    server.bind(tcpPort, udpPort);
    server.addListener(new Listener() {
      public void connected (Connection connection) {
        data.stuff[3] = 4;
        server.sendToAllTCP(data);

        data.stuff[3] = 123;
View Full Code Here

Examples of com.espertech.esper.client.EPStatement.addListener()

        // Add the stream in the Esper engine
        for (final String sqlStatement : streamConfig.getSql()) {
            final EPStatement epl = epService.getEPAdministrator().createEPL(sqlStatement);
            for (final String publisherType : publishers.keySet()) {
                log.info(String.format("Added publisher [%-50s] to [%s]", publisherType, sqlStatement));
                epl.addListener(publishers.get(publisherType));
            }
            epl.start();
        }
    }
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.