Package org.gudy.azureus2.plugins.update

Examples of org.gudy.azureus2.plugins.update.UpdateManager.addListener()


         
          MenuItem setcopyto_menu_item = menu_manager.addMenuItem("sidebar." + key, "devices.xcode.setcopyto");
          setcopyto_menu_item.setStyle(MenuItem.STYLE_PUSH);
         
         
          setcopyto_menu_item.addListener(new MenuItemListener() {
            public void
            selected(
                MenuItem menu, Object target)
            {
              Shell shell = Utils.findAnyShell();
View Full Code Here


          autostart_menu_item.addFillListener(new MenuItemFillListener() {
            public void menuWillBeShown(MenuItem menu, Object data) {
              menu.setData(new Boolean(renderer.getAutoStartDevice()));
            }
          });
          autostart_menu_item.addListener(new MenuItemListener() {
            public void selected(MenuItem menu, Object target) {
               renderer.setAutoStartDevice((Boolean) menu.getData());
            }
          });
        }
View Full Code Here

                       
                        MenuItem menu_un = menu_manager.addMenuItem(
                            menu_associate,
                            "!" + un.getAddress().getHostAddress() + ": " + un.getDescription() + "!");
                         
                          menu_un.addListener(
                              new MenuItemListener()
                              {
                                public void
                                selected(
                                    MenuItem   menu,
View Full Code Here

          need_sep = true;
         
          final MenuItem menu_ra = menu_manager.addMenuItem(
              "sidebar." + key, "devices.restrict_access");
         
          menu_ra.addListener(
            new MenuItemListener()
            {
              public void
              selected(
                MenuItem menu,
View Full Code Here

         
          MenuItem menu_profile_never = menu_manager.addMenuItem( menu_default_profile, "v3.menu.device.defaultprofile.never");
         
          menu_profile_never.setStyle(MenuItem.STYLE_CHECK );
          menu_profile_never.setData(Boolean.TRUE);
          menu_profile_never.addListener(new MenuItemListener() {
            public void selected(MenuItem menu, Object target) {
              renderer.setTranscodeRequirement(((Boolean)menu.getData())?TranscodeTarget.TRANSCODE_NEVER:TranscodeTarget.TRANSCODE_WHEN_REQUIRED );
            }});

View Full Code Here

         
          MenuItem menu_profile_none = menu_manager.addMenuItem(
              menu_default_profile, "option.askeverytime");
          menu_profile_none.setStyle(MenuItem.STYLE_RADIO);
          menu_profile_none.setData(Boolean.FALSE);
          menu_profile_none.addListener(new MenuItemListener() {
            public void selected(MenuItem menu, Object target) {
              renderer.setDefaultTranscodeProfile(null);
            }
          });
         
View Full Code Here

          for (final TranscodeProfile profile : transcodeProfiles) {
            MenuItem menuItem = menu_manager.addMenuItem(
                menu_default_profile, "!" + profile.getName() + "!");
              menuItem.setStyle(MenuItem.STYLE_RADIO);
              menuItem.setData(Boolean.FALSE);
              menuItem.addListener(new MenuItemListener() {
                public void selected(MenuItem menu, Object target) {
                  renderer.setDefaultTranscodeProfile(profile);
                }
              });
             
View Full Code Here

              rss_menu_item.setEnabled( device_manager.isRSSPublishEnabled());
             
              menu.setData(new Boolean(device_manager.isRSSPublishEnabled() && renderer.isRSSPublishEnabled()));
            }
          });
          rss_menu_item.addListener(new MenuItemListener() {
            public void selected(MenuItem menu, Object target) {
               renderer.setRSSPublishEnabled((Boolean) menu.getData());
            }
          });
         
View Full Code Here

          public void menuWillBeShown(MenuItem menu, Object data) {
            menu.setEnabled( dod.isAlive());
          }
        });

        configure_menu_item.addListener(
            new MenuItemListener()
            {
              public void
              selected(
                  MenuItem   menu,
View Full Code Here

          public void menuWillBeShown(MenuItem menu, Object data) {
            menu.setData(new Boolean( dod.isEnabled()));
          }
        });
       
        enabled_menu_item.addListener(new MenuItemListener() {
          public void selected(MenuItem menu, Object target) {
             dod.setEnabled((Boolean) menu.getData());
          }
        });
      }
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.