Examples of addListener()


Examples of com.google.common.util.concurrent.Service.addListener()

      controller.stop().get(2, TimeUnit.SECONDS);

      Assert.assertEquals(ServiceController.State.TERMINATED, controller.state());

      final CountDownLatch terminateLatch = new CountDownLatch(1);
      service.addListener(new ServiceListenerAdapter() {
        @Override
        public void terminated(Service.State from) {
          terminateLatch.countDown();
        }
      }, Threads.SAME_THREAD_EXECUTOR);
View Full Code Here

Examples of com.google.common.util.concurrent.ServiceManager.addListener()

        Ping.Pinger pinger = injector.getInstance(Ping.Pinger.class);
        pinger.ping();

        final ServiceManager serviceManager = injector.getInstance(ServiceManager.class);
        final ServiceManagerListener serviceManagerListener = injector.getInstance(ServiceManagerListener.class);
        serviceManager.addListener(serviceManagerListener);
        serviceManager.startAsync().awaitHealthy();

        LOG.info("Graylog2 Radio up and running.");

        while (true) {
View Full Code Here

Examples of com.google_voltpatches.common.util.concurrent.ListenableFuture.addListener()

            // Stream more and add a listener to handle any failures
            Pair<ListenableFuture, Boolean> streamResult =
                    m_streamers.get(tableId).streamMore(context, outputBuffers, null);
            if (streamResult.getFirst() != null) {
                final ListenableFuture writeFutures = streamResult.getFirst();
                writeFutures.addListener(new Runnable() {
                    @Override
                    public void run()
                    {
                        try {
                            writeFutures.get();
View Full Code Here

Examples of com.googlecode.mcvaadin.McWindow.addListener()

        final McWindow confirm = new McWindow(title);
        win.addWindow(confirm);
        confirm.setStyleName(Window.STYLE_LIGHT);

        // Close listener implementation
        confirm.addListener(new Window.CloseListener() {

            private static final long serialVersionUID = 1971800928047045825L;

            public void windowClose(CloseEvent ce) {
                Object data = ce.getWindow().getData();
View Full Code Here

Examples of com.guokr.simbase.store.VectorSet.addListener()

        String rkey = rkey(vkeySource, vkeyTarget);
        this.recommendations.put(rkey, rec);

        source.addListener(rec);
        if (target != source) {
            target.addListener(rec);
        }

        if (source.type().equals("dense")) {
            for (int srcVecId : source.ids()) {
                rec.create(srcVecId);
View Full Code Here

Examples of com.gwtext.client.widgets.Button.addListener()


        final SimplePanel detailPanel = new SimplePanel();
        if (longMessage != null && !"".equals(longMessage)) {
          Button showD = new Button(constants.ShowDetail());
          showD.addListener(new ButtonListenerAdapter() {
        public void onClick(Button button, EventObject e) {
          detailPanel.clear();
                    VerticalPanel vp = new VerticalPanel();
                    vp.add(new HTML("<hr/>"));
View Full Code Here

Examples of com.gwtext.client.widgets.Panel.addListener()

        localTP.setAutoScroll( true );
        localTP.add( widget );
        tp.add( localTP,
                this.centerLayoutData );

        localTP.addListener( new PanelListenerAdapter() {
            public void onDestroy(Component component) {
                Panel p = openedTabs.remove( keys );
                if ( p != null ) {
                    p.destroy();
                }
View Full Code Here

Examples of com.gwtext.client.widgets.TabPanel.addListener()

//    pnl.setAutoHeight(true);
    pnl.add(buildTemplateTable());
    pnl.setId("tplTable");
    tPanel.add(pnl);
   
    tPanel.addListener(new TabPanelListenerAdapter() {
     
      @Override
      public boolean doBeforeTabChange(TabPanel source, Panel newPanel, Panel oldPanel) {
        if ("tplTable".equals(newPanel.getId())) {
          Set<String> keySet = new HashSet<String>(model.getTable().keySet());
View Full Code Here

Examples of com.gwtext.client.widgets.ToolbarButton.addListener()

        .format(
            "bpeleditor/BPELEditor.html?uuid={0}&fileName={1}&dirName={2}&servletName={3}&isNew={4}",
            new String[] { uuid, fileName, dirName, servletName,
                isNew });

    viewSource.addListener(new ButtonListenerAdapter() {
      public void onClick(com.gwtext.client.widgets.Button button,
          EventObject e) {

        Window.open(url, "_" + fileName, null);
View Full Code Here

Examples of com.gwtext.client.widgets.ToolbarMenuButton.addListener()

        Toolbar pkgToolbar = new Toolbar();
        final ToolbarMenuButton menuButton = new ToolbarMenuButton(constants.CreateNew(), packageNewMenu());
        pkgToolbar.addButton( menuButton );

        menuButton.addListener( new SplitButtonListenerAdapter() {

            public void onClick(Button button,
                                EventObject e) {
                menuButton.showMenu();
            }
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.