Examples of ChangeSelectionActionPerformer


Examples of org.gudy.azureus2.ui.swt.config.ChangeSelectionActionPerformer

        "ConfigView.section.style.useFancyTabs").getControl();

    Control[] controls = {
      cFancyTab
    };
    bpCustomTab.setAdditionalActionPerformer(new ChangeSelectionActionPerformer(
        controls));

    return cSection;
  }
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.config.ChangeSelectionActionPerformer

      gridData = new GridData();
      max_uploads_when_seeding.setMinimumValue(2);
      max_uploads_when_seeding.setLayoutData(gridData);
     
      max_uploads_when_seeding_enabled.setAdditionalActionPerformer(
          new ChangeSelectionActionPerformer( max_uploads_when_seeding.getControl()));
         
        // max peers
     
      label = new Label(gTorrentOptions, SWT.NULL);
      gridData = new GridData();
      label.setLayoutData( gridData );
      Messages.setLanguageText(label, TEXT_PREFIX + "max.peers");
     
      GenericIntParameter max_peers = new GenericIntParameter(ds_param_adapter,
          gTorrentOptions, DownloadManagerState.PARAM_MAX_PEERS);
      ds_parameters.put( DownloadManagerState.PARAM_MAX_PEERS, max_peers );
      gridData = new GridData();
      max_peers.setLayoutData(gridData);
 
        // max peers when seeding
     
      final Composite cMaxPeersOptionsArea = new Composite(gTorrentOptions, SWT.NULL);
      layout = new GridLayout();
      layout.numColumns = 3;
      layout.marginWidth = 0;
      layout.marginHeight = 0;
      cMaxPeersOptionsArea.setLayout(layout);
      gridData = new GridData();
      gridData.horizontalIndent = 15;
      gridData.horizontalSpan = 2;
      cMaxPeersOptionsArea.setLayoutData(gridData);
     
      label = new Label(cMaxPeersOptionsArea, SWT.NULL);
      ImageLoader.getInstance().setLabelImage(label, "subitem");
      gridData = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);
      label.setLayoutData(gridData);
 
      gridData = new GridData();
      GenericBooleanParameter  max_peers_when_seeding_enabled =
        new GenericBooleanParameter(
            ds_param_adapter,
            cMaxPeersOptionsArea,
            DownloadManagerState.PARAM_MAX_PEERS_WHEN_SEEDING_ENABLED,
            false,
            TEXT_PREFIX + "alternative.value.enable");
      ds_parameters.put( DownloadManagerState.PARAM_MAX_PEERS_WHEN_SEEDING_ENABLED, max_peers_when_seeding_enabled );
      max_peers_when_seeding_enabled.setLayoutData( gridData );
     
 
      GenericIntParameter max_peers_when_seeding = new GenericIntParameter(
          ds_param_adapter, cMaxPeersOptionsArea,
          DownloadManagerState.PARAM_MAX_PEERS_WHEN_SEEDING);
      ds_parameters.put( DownloadManagerState.PARAM_MAX_PEERS_WHEN_SEEDING, max_peers_when_seeding );
      gridData = new GridData();
      max_peers_when_seeding.setLayoutData(gridData);
     
      max_peers_when_seeding_enabled.setAdditionalActionPerformer(
          new ChangeSelectionActionPerformer( max_peers_when_seeding.getControl()));

     
        // max seeds
     
      label = new Label(gTorrentOptions, SWT.NULL);
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.config.ChangeSelectionActionPerformer

    new BooleanParameter(cStart, "update.start", "ConfigView.label.checkonstart");
    new BooleanParameter(cStart, "update.periodic", "ConfigView.label.periodiccheck");
    BooleanParameter autoDownload = new BooleanParameter(cStart, "update.autodownload", "ConfigView.section.update.autodownload");
    BooleanParameter openDialog = new BooleanParameter(cStart, "update.opendialog", "ConfigView.label.opendialog");
   
    autoDownload.setAdditionalActionPerformer(new ChangeSelectionActionPerformer(
        new Control[] { openDialog.getControl() }, true ));
   
    new Label(cStart,SWT.NULL);
    new BooleanParameter(cStart, "Open Transfer Bar On Start", "ConfigView.label.open_transfer_bar_on_start");
    new BooleanParameter(cStart, "Start Minimized", "ConfigView.label.startminimized");
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.