Examples of addListener()


Examples of com.aelitis.azureus.core.util.http.HTTPAuthHelper.addListener()

       
      try{
        final HTTPAuthHelper this_sniffer = sniffer =
          new HTTPAuthHelper( new URL( originalLoginUrl ));
       
        this_sniffer.addListener(
          new HTTPAuthHelperListener()
          {
            public void
            cookieFound(
              HTTPAuthHelper   helper,
View Full Code Here

Examples of com.aelitis.azureus.plugins.dht.DHTPlugin.addListener()

        {             
            DHTPlugin dht = adapter.getDHTPlugin();
           
            if ( dht != null ){
             
                dht.addListener(
                  new DHTPluginListener()
                  {
                    public void
                    localAddressChanged(
                      DHTPluginContact  local_contact )
View Full Code Here

Examples of com.aelitis.azureus.plugins.magnet.MagnetPlugin.addListener()

        if (component instanceof PluginInterface) {
          PluginInterface pi = (PluginInterface) component;
          if (pi.getPlugin() instanceof MagnetPlugin) {

            MagnetPlugin magnetPlugin = (MagnetPlugin) pi.getPlugin();
            magnetPlugin.addListener(new MagnetPluginListener() {
              public boolean set(String name, Map values) {
                if (name.equals("AZMSG") && values != null) {
                  String val = (String) values.get("value");
                  if (val.indexOf(";switch-ui;") > 0) {
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry.addListener()

   
    openURL();

    MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();
    MdiEntry entry = mdi.getEntry(SideBar.SIDEBAR_SECTION_WELCOME);
    entry.addListener(new MdiCloseListener() {
      public void mdiEntryClosed(MdiEntry entry, boolean userClosed) {
        MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();
        if (mdi != null) {
          mdi.showEntryByID(SideBar.SIDEBAR_SECTION_LIBRARY);
        }
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.Initializer.addListener()

    }
   
    if (!AzureusCoreFactory.isCoreRunning()) {
      final Initializer initializer = Initializer.getLastInitializer();
      if (initializer != null) {
        initializer.addListener(new InitializerListener() {
          public void reportPercent(final int percent) {
            Utils.execSWTThread(new AERunnable() {
              public void runSupport() {
                if (soWaitProgress != null && !soWaitProgress.isDisposed()) {
                  soWaitProgress.setData("progress", new Long(percent));
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.mdi.MultipleDocumentInterfaceSWT.addListener()

      final MdiEntry entry = mdi.getEntryBySkinView(this);
      if (entry != null) {
        vitalityImage = entry.addVitalityImage("image.sidebar.vitality.dots");
        vitalityImage.setVisible(false);

        mdi.addListener(new MdiListener() {
          long lastSelect = 0;

          public void mdiEntrySelected(MdiEntry newEntry,
              MdiEntry oldEntry) {
            if (entry == newEntry) {
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.sidebar.SideBarEntrySWT.addListener()

      entry.setImageLeftID("image.sidebar.library");
    }

    if (entry instanceof SideBarEntrySWT) {
      final SideBarEntrySWT entrySWT = (SideBarEntrySWT) entry;
      entrySWT.addListener(new MdiSWTMenuHackListener() {
        public void menuWillBeShown(MdiEntry entry, Menu menuTree) {
          CategoryUIUtils.createMenuItems(menuTree, category);
        }
      });
    }
View Full Code Here

Examples of com.aem.sticky.button.TextButton.addListener()

     
      this._buttonListener.add(button);
      this._levelButtons.add(button);
      this._buttonsToFiles.put(button, levelNames.get(i));
     
      button.addListener(new ClickListener() {
       
        @Override
        public void onClick(
            com.aem.sticky.button.Button arg0,
            float arg1,
View Full Code Here

Examples of com.alibaba.dubbo.examples.callback.api.CallbackService.addListener()

    public static void main(String[] args) throws Exception {
        String config = CallbackConsumer.class.getPackage().getName().replace('.', '/') + "/callback-consumer.xml";
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);
        context.start();
        CallbackService callbackService = (CallbackService) context.getBean("callbackService");
        callbackService.addListener("foo.bar", new CallbackListener() {
            public void changed(String msg) {
                System.out.println("callback1:" + msg);
            }
        });
        System.in.read();
View Full Code Here

Examples of com.alibaba.taobao.worker.ConfigurableWorker.addListener()

        ConfigurableWorker reduceWorker_1 = new ConfigurableWorker("W_R1");
        reduceWorker_1.setTaskProcessor(new URLMatchingProcessor());

        // bind reducer to final result class
        MapReduceURLMiningMain main = new MapReduceURLMiningMain();
        reduceWorker_1.addListener(main);

        // initiate tasks
        addTask2Worker(mapWorker_1, new MapReducePageURLMiningTask("http://www.taobao.com"));
        addTask2Worker(mapWorker_1, new MapReducePageURLMiningTask("http://www.xinhuanet.com"));
        addTask2Worker(mapWorker_1, new MapReducePageURLMiningTask("http://www.zol.com.cn"));
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.