Package org.gudy.azureus2.plugins.update

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


     
        // rename
     
      MenuItem rename_menu_item = menu_manager.addMenuItem("sidebar." + key, "MyTorrentsView.menu.rename" );
     
      rename_menu_item.addListener( rename_listener );                 
     
        // export
     
      if ( device.isExportable()){
       
View Full Code Here


     
      if ( device.isExportable()){
       
        MenuItem export_item = menu_manager.addMenuItem("sidebar." + key,"Subscription.menu.export");
       
        export_item.addListener( export_listener );
      }
     
        // hide
     
      MenuItem hide_menu_item = menu_manager.addMenuItem("sidebar." + key, "device.hide");
View Full Code Here

     
        // hide
     
      MenuItem hide_menu_item = menu_manager.addMenuItem("sidebar." + key, "device.hide");
     
      hide_menu_item.addListener( hide_listener );
     
        // remove
     
      MenuItem remove_menu_item = menu_manager.addMenuItem("sidebar." + key, "MySharesView.menu.remove");
     
View Full Code Here

     
      MenuItem remove_menu_item = menu_manager.addMenuItem("sidebar." + key, "MySharesView.menu.remove");
     
      remove_menu_item.addFillListener( will_remove_listener );
       
      remove_menu_item.addListener( remove_listener );

      // sep
     
      menu_manager.addMenuItem("sidebar." + key, "s3" ).setStyle( MenuItem.STYLE_SEPARATOR );
     
View Full Code Here

     
      // props
     
      MenuItem menu_item = menu_manager.addMenuItem("sidebar." + key,"Subscription.menu.properties");
     
      menu_item.addListener( properties_listener );
    }
  }

  protected static String
  getDeviceImageID(
View Full Code Here

    menuShowTime.addFillListener(new MenuItemFillListener() {
      public void menuWillBeShown(MenuItem menu, Object data) {
        menu.setData(showTime);
      }
    });
    menuShowTime.addListener(new MenuItemListener() {
      public void selected(MenuItem menu, Object target) {
        showTime = !showTime;
        setUserData("showTime", new Long(showTime ? 1 : 0));
        maxWidthUsed = new int[TimeFormatter.DATEFORMATS_DESC.length];
        maxWidthDate = new Date[TimeFormatter.DATEFORMATS_DESC.length];
View Full Code Here

   
    final TableContextMenuItem menu1 = plugin_interface.getUIManager().getTableManager().addContextMenuItem(TableManager.TABLE_MYTORRENTS_INCOMPLETE, "MagnetPlugin.contextmenu.exporturi" );
    final TableContextMenuItem menu2 = plugin_interface.getUIManager().getTableManager().addContextMenuItem(TableManager.TABLE_MYTORRENTS_COMPLETE,   "MagnetPlugin.contextmenu.exporturi" );
     
    menu1.addListener( listener );
    menu2.addListener( listener );

    MagnetURIHandler.getSingleton().addListener(
      new MagnetURIHandlerListener()
      {
        public byte[]
View Full Code Here

            };
            TableManager tm = pi.getUIManager().getTableManager();
            TableContextMenuItem menu;
            menu = tm.addContextMenuItem(
                TableManager.TABLE_MYTORRENTS_COMPLETE, DEBUG_MENU_ID);
            menu.addListener(menuListener);
            menu = tm.addContextMenuItem(
                TableManager.TABLE_MYTORRENTS_INCOMPLETE, DEBUG_MENU_ID);
            menu.addListener(menuListener);
          }
        } catch (Throwable t) {
View Full Code Here

            menu = tm.addContextMenuItem(
                TableManager.TABLE_MYTORRENTS_COMPLETE, DEBUG_MENU_ID);
            menu.addListener(menuListener);
            menu = tm.addContextMenuItem(
                TableManager.TABLE_MYTORRENTS_INCOMPLETE, DEBUG_MENU_ID);
            menu.addListener(menuListener);
          }
        } catch (Throwable t) {
          Debug.printStackTrace(t);
        }
      }
View Full Code Here

           
            manual_item.setData( new Boolean( f_all_manual ));
           
            manual_item.setStyle( MenuItem.STYLE_CHECK );
           
            manual_item.addListener(
              new MenuItemListener()
              {
                public void
                selected(
                  MenuItem      menu,
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.