Package com.aelitis.azureus.ui

Examples of com.aelitis.azureus.ui.UIFunctions$actionListener


    SelectedContent[] content = listSelected.toArray(new SelectedContent[0]);
    SelectedContentManager.changeCurrentlySelectedContent(tv.getTableID(), content, tv);
  }
 
  private void refreshTorrentMenu() {
    UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
    if (uiFunctions != null && uiFunctions instanceof UIFunctionsSWT) {
      ((UIFunctionsSWT)uiFunctions).refreshTorrentMenu();
    }
  }
View Full Code Here


    showSelectedDetails();
  }
 
  private void showSelectedDetails() {
    Object[] dm_sources = tv.getSelectedDataSources().toArray();
    UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
    for (int i = 0; i < dm_sources.length; i++) {
      if (!(dm_sources[i] instanceof DownloadManager)) {
        continue;
      }
      if (uiFunctions != null) {
        uiFunctions.openView(UIFunctions.VIEW_DM_DETAILS, dm_sources[i]);
      }
    }   
  }
View Full Code Here

          share_hash = ((ShareResourceFile) share).getItem().getTorrent().getHash();
        }

        if (Arrays.equals(share_hash, dm.getTorrent().getHash())) {

          UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
          if (uiFunctions != null) {
            uiFunctions.openView(UIFunctions.VIEW_DM_DETAILS, dm);
          }

          break;
        }
      } catch (Throwable e) {
View Full Code Here

  public void reportProgress(final int percent_complete) {  }
 
  public void  reportCurrentTask(final String task_description) { }
  public void tableRefresh() {
      UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
       if (uiFunctions != null) {
         uiFunctions.refreshIconBar();
       }
  }  
View Full Code Here

  public void defaultSelected(TableRowCore[] rows, int stateMask) {
  }

  // @see com.aelitis.azureus.ui.common.table.TableSelectionListener#deselected(com.aelitis.azureus.ui.common.table.TableRowCore[])
  public void deselected(TableRowCore[] rows) {
    UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
    if (uiFunctions != null) {
      uiFunctions.refreshIconBar();
    }
  }
View Full Code Here

    }
  }

  // @see com.aelitis.azureus.ui.common.table.TableSelectionListener#focusChanged(com.aelitis.azureus.ui.common.table.TableRowCore)
  public void focusChanged(TableRowCore focus) {
    UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
    if (uiFunctions != null) {
      uiFunctions.refreshIconBar();
    }
  }
View Full Code Here

  public void mouseExit(TableRowCore row) {
  }

  // @see com.aelitis.azureus.ui.common.table.TableSelectionListener#selected(com.aelitis.azureus.ui.common.table.TableRowCore[])
  public void selected(TableRowCore[] row) {
    UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
    if (uiFunctions != null) {
      uiFunctions.refreshIconBar();
    }
  }
View Full Code Here

          command
        });
        int commandID = claHICommand.getField("commandID").getInt(command);
        switch (commandID) {
          case kHICommandPreferences: {
            UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
            if (uiFunctions != null) {
              uiFunctions.openView(UIFunctions.VIEW_CONFIG, null);
            }
            return noErr;
          }
          case kHICommandAbout:
            AboutWindow.show();
            return noErr;
          case kHICommandRestart: {
            UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
            if (uiFunctions != null) {
              uiFunctions.dispose(true, false);
            }
            return noErr;
          }
          case kHICommandWizard:
            new ConfigureWizard(false,ConfigureWizard.WIZARD_MODE_FULL);
            return noErr;
          case kHICommandNatTest:
            new NatTestWindow();
            return noErr;
          case kHICommandSpeedTest:
            new SpeedTestWizard();
            return noErr;

          case kAEQuitApplication:
            UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
            if (uiFunctions != null) {
              uiFunctions.dispose(false, false);
              return noErr;
            } else {
              UIExitUtilsSWT.setSkipCloseCheck(true);
            }
          default:
View Full Code Here

    }
    return eventNotHandledErr;
  }

  final static int quitAppProc(int theAppleEvent, int reply, int handlerRefcon) {
    UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
    if (uiFunctions != null) {
      uiFunctions.dispose(false, false);
    } else {
      UIExitUtilsSWT.setSkipCloseCheck(true);
      Display.getDefault().dispose();
    }
    return noErr;
View Full Code Here

    }
    return eventNotHandledErr;
  }

  final static int clickDockIcon(int nextHandler, int theEvent, int userData) {
    UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
    if (uiFunctions != null) {
      uiFunctions.bringToFront();
      return noErr;
    }
    return eventNotHandledErr;
  }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.UIFunctions$actionListener

Copyright © 2018 www.massapicom. 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.