Examples of UIManager


Examples of com.teamjmonkey.ui.UIManager

        // == Move a lot of these into the "initialise once" level === //
        bulletAppState = new BulletAppState();
        stateManager.attach(bulletAppState);

        // load needed managers now
        uiManager = new UIManager();

        fileManager = new FileManager(assetManager);
        effectsManager = new EffectsManager();
        controlManager = new ControlManager();
        preloadManager = new PreloadManager();
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIManager

       
        String app_name = SystemProperties.getApplicationName();
       
        if ( !( app_name.equals( "Vuze" ) || app_name.equals( "Azureus" ))){
         
          UIManager ui_manager = StaticUtilities.getUIManager( 120*1000 );
         
          String details = MessageText.getString(
              "update.fail.app.changed",
              new String[]{ app_name });
         
          ui_manager.showMessageBox(
              "update.fail.app.changed.title",
              "!" + details + "!",
              UIManagerEvent.MT_OK );
         
          return;
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIManager

 

  public void addView(final PluginView view, final boolean bAutoOpen) {
    try {
     
      UIManager ui_manager = PluginInitializer.getDefaultInterface().getUIManager();

      ui_manager.addUIListener(new UIManagerListener() {
        public void UIAttached(UIInstance instance) {
          if (instance instanceof UISWTInstance) {
            if (view instanceof PluginViewWrapper) {

              // legacy support for RSSImport plugin
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIManager

      console.printconsolehelp();
      created_console = true;
    }

    PluginInterface pi = UIConst.getAzureusCore().getPluginManager().getDefaultPluginInterface();
    UIManager  ui_manager = pi.getUIManager();
   
    ui_manager.addUIEventListener( this );
   
    try{
      ui_manager.attachUI( this );
    }catch( UIException e ){
      e.printStackTrace();
    }
    TorrentDownloaderFactory.initManager(UIConst.getGlobalManager(), true, true, COConfigurationManager.getStringParameter("Default save path") );
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIManager

  }
 
  private boolean
  informUpdateRequired()
  {
    UIManager ui_manager = StaticUtilities.getUIManager( 120*1000 );

    long res = ui_manager.showMessageBox(
        "update.now.title",
        "update.now.desc",
        UIManagerEvent.MT_OK | UIManagerEvent.MT_CANCEL );
   
    return( res == UIManagerEvent.MT_OK );
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIManager

          runSupport()
          {
            try{
              final AESemaphore done_sem = new AESemaphore( "PluginInstall:fio" );
                                 
              final UIManager ui_manager = StaticUtilities.getUIManager( 120*1000 );
                 
              new AEThread2( "PluginInstall:fio", true )
                {
                  public void
                  run()
                  {
                    if ( installer.isAlreadyInstalled()){
                                           
                      String details = MessageText.getString(
                          "fileplugininstall.duplicate.desc",
                          new String[]{ installer.getName(), installer.getVersion()});
                     
                      ui_manager.showMessageBox(
                          "fileplugininstall.duplicate.title",
                          "!" + details + "!",
                          UIManagerEvent.MT_OK );
 
                      done_sem.release();
                     
                    }else{
 
                      String details = MessageText.getString(
                          "fileplugininstall.install.desc",
                          new String[]{ installer.getName(), installer.getVersion()});
                                                   
                      long res = ui_manager.showMessageBox(
                          "fileplugininstall.install.title",
                          "!" + details + "!",
                          UIManagerEvent.MT_YES | UIManagerEvent.MT_NO );
                     
                      if ( res == UIManagerEvent.MT_YES ){
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIManager

  {
    must_update_once = COConfigurationManager.getBooleanParameter( "pairing.updateoutstanding" );

    PluginInterface default_pi = PluginInitializer.getDefaultInterface();
   
    final UIManager  ui_manager = default_pi.getUIManager();
   
    BasicPluginConfigModel configModel = ui_manager.createBasicPluginConfigModel(
        ConfigSection.SECTION_CONNECTION, "Pairing");

    configModel.addHyperlinkParameter2( "ConfigView.label.please.visit.here", MessageText.getString( "ConfigView.section.connection.pairing.url" ));

    param_enable = configModel.addBooleanParameter2( "pairing.enable", "pairing.enable", false );
   
    String  access_code = readAccessCode();
   
    param_ac_info = configModel.addInfoParameter2( "pairing.accesscode", access_code);
   
    param_status_info   = configModel.addInfoParameter2( "pairing.status.info", "" );
   
    param_last_error  = configModel.addInfoParameter2( "pairing.last.error", "" );
   
    param_view = configModel.addHyperlinkParameter2( "pairing.view.registered", SERVICE_URL + "/web/view?ac=" + access_code);

    if ( access_code.length() == 0 ){
     
      param_view.setEnabled( false );
    }
   
    final ActionParameter ap = configModel.addActionParameter2( "pairing.ac.getnew", "pairing.ac.getnew.create" );
   
    ap.addListener(
      new ParameterListener()
      {
        public void
        parameterChanged(
          Parameter   param )
        {
          try{
            ap.setEnabled( false );
           
            allocateAccessCode( false );
           
            SimpleTimer.addEvent(
              "PM:enabler",
              SystemTime.getOffsetTime(30*1000),
              new TimerEventPerformer()
              {
                public void
                perform(
                  TimerEvent event )
                {
                  ap.setEnabled( true );
                }
              });
           
          }catch( Throwable e ){
           
            ap.setEnabled( true );
           
            String details = MessageText.getString(
                "pairing.alloc.fail",
                new String[]{ Debug.getNestedExceptionMessage( e )});
           
            ui_manager.showMessageBox(
                "pairing.op.fail",
                "!" + details + "!",
                UIManagerEvent.MT_OK );
          }
        }
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIManager

            new AEThread2( "PairMsg", true )
            {
              public void
              run()
              {
                UIManager ui_manager = StaticUtilities.getUIManager( 120*1000 );
               
                if ( ui_manager != null ){
               
                  ui_manager.showMessageBox(
                      "pairing.server.warning.title",
                      "!" + message + "!",
                      UIManagerEvent.MT_OK );
                }
              }
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIManager

        for (Licence licence : licences) {
          fml.licenceAdded(licence);
        }
       

        UIManager ui_manager = pi.getUIManager();

        ui_manager.addUIListener(new UIManagerListener() {
          public void UIDetached(UIInstance instance) {
          }

          public void UIAttached(UIInstance instance) {
            if (!(instance instanceof UISWTInstance)) {
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIManager

       
    dht_data_port = UDPNetworkManager.getSingleton().getUDPNonDataListeningPortNumber();

    log = plugin_interface.getLogger().getTimeStampedChannel(PLUGIN_NAME);
   
    UIManager  ui_manager = plugin_interface.getUIManager();

    final BasicPluginViewModel model =
      ui_manager.createBasicPluginViewModel( PLUGIN_RESOURCE_ID );

    model.setConfigSectionID(PLUGIN_CONFIGSECTION_ID);
   
    BasicPluginConfigModel  config = ui_manager.createBasicPluginConfigModel(ConfigSection.SECTION_PLUGINS, PLUGIN_CONFIGSECTION_ID);
     
    config.addLabelParameter2( "dht.info" );
   
    final BooleanParameter  enabled_param = config.addBooleanParameter2( "dht.enabled", "dht.enabled", true );
   
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.