Examples of addListener()


Examples of com.sonymobile.tools.gerrit.gerritevents.GerritHandler.addListener()

    private void addThisTriggerAsListener(AbstractProject project) {
        PluginImpl plugin = PluginImpl.getInstance();
        if (plugin != null) {
            GerritHandler handler = plugin.getHandler();
            if (handler != null) {
                handler.addListener(this);
            } else {
                logger.warn("The plugin has no handler instance (BUG)! Project {} will not be triggered!",
                        project.getFullDisplayName());
            }
        } else {
View Full Code Here

Examples of com.springsource.insight.intercept.plugin.CollectionSettingsRegistry.addListener()

    public SocketCollectOperationContext() {
        this(HttpObfuscator.getInstance());

        CollectionSettingsRegistry registry = CollectionSettingsRegistry.getInstance();
        registry.addListener(this);
        registry.register(OBSCURED_ADDRESSES_PATTERN_SETTING, NO_PATTERN_VALUE);
    }

    SocketCollectOperationContext(HttpObfuscator hdrsObfuscator) {
        obfuscator = hdrsObfuscator;
View Full Code Here

Examples of com.sun.jersey.spi.container.ContainerNotifier.addListener()

                    List list = (List) o;
                    for (Object elem : list) {
                        if (elem instanceof ContainerNotifier &&
                                c instanceof ContainerListener) {
                            ContainerNotifier crf = (ContainerNotifier) elem;
                            crf.addListener((ContainerListener) c);
                        }
                    }
                } else if (o instanceof ContainerNotifier &&
                        c instanceof ContainerListener) {
                    ContainerNotifier crf = (ContainerNotifier) o;
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.config.BrokerConfig.addListener()

   * static variables METRICS_TIME, PERSIST,
   * and TTL when their corresponding
   * properties are updated.
   */
  BrokerConfig cfg = Globals.getConfig();
  cfg.addListener(METRICS_TIME_PROP, cl);
  cfg.addListener(PERSIST_PROP, cl);
  cfg.addListener(TTL_PROP, cl);
  cfg.addListener(ENABLED_PROP, cl);
    }

View Full Code Here

Examples of com.sun.sgs.profile.ProfileCollector.addListener()

        // not a core server node.
        if (graphBuilder != null && type != NodeType.coreServerNode) {
            ProfileCollector col =
                systemRegistry.getComponent(ProfileCollector.class);
            graphListener = new GraphListener(graphBuilder);
            col.addListener(graphListener, false);
        } else {
            graphListener = null;
        }
        logger.log(Level.CONFIG,
                       "Created LPADriver with listener: " + graphListener +
View Full Code Here

Examples of com.taobao.tddl.common.config.ConfigDataHandler.addListener()

      } catch (Throwable t) {
        //��֤��ʹ�״δ���dataId�����쳣��listenerҲһ���ᱻע�ᣬҵ����Ȼ���յ���������
        log.error("onDataReceiveAtRegister�׳��쳣��dataId:" + dataId, t);
      }
    }
    matrixHandler.addListener(new ConfigDataListener() {
      @Override
      public void onDataRecieved(String dataId, String data) {
        log.info("recieve data,data id:"+dataId+" data:"+data);
        listener.onDataReceive(data);
      }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.dialog.LoginDialog.addListener()

    String usr = null;
    if (directLink != null) {
      usr = getValue("user", directLink);
    }
    final LoginDialog dlg = new LoginDialog(usr);   
    dlg.addListener(Events.Hide, new Listener<BoxComponentEvent>() {
      public void handleEvent(BoxComponentEvent be) { 
        user = dlg.getUser();       
        if (directLink == null) {
          Dispatcher.forwardEvent(WPaloEvent.INIT, user);
        } else {
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.widgets.Hyperlink.addListener()

    ((WPalo) Registry.get(WPalo.ID)).show(viewport);
  }
   
  private final void fillViewPanelStatusLine() {   
    Hyperlink logout = new Hyperlink("Logout");
    logout.addListener(new OnClickListener() {
      public void clicked(ComponentEvent ce) {
        logout();
      }
    });
    viewpanelStatusLine.add(logout);
View Full Code Here

Examples of com.threerings.presents.data.ClientObject.addListener()

        super.clientDidLogon(client);

        ClientObject clientObj = client.getClientObject();
        if (clientObj instanceof ClusteredBodyObject) {
            // listen to the client object
            clientObj.addListener(this);
            _self = (ClusteredBodyObject) clientObj;

            // we may need to subscribe to a cluster due to session resumption
            maybeUpdateCluster();
        }
View Full Code Here

Examples of com.tulskiy.musique.audio.player.Player.addListener()

                    }
                }
            }
        });

        player.addListener(new PlayerListener() {
            @Override
            public void onEvent(PlayerEvent e) {
                Track track = player.getTrack();
                if (track != null && track.getTrackData().isStream()) {
                    update.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.