FileDocCategorySizeDatePackage
FinishPanel.javaAPI DocAzureus 3.0.3.43739Mon Aug 21 05:58:28 BST 2006org.gudy.azureus2.ui.swt.config.wizard

FinishPanel

public class FinishPanel extends org.gudy.azureus2.ui.swt.wizard.AbstractWizardPanel
author
Olivier

Fields Summary
Constructors Summary
public FinishPanel(ConfigureWizard wizard, org.gudy.azureus2.ui.swt.wizard.IWizardPanel previous)

    super(wizard, previous);
  
Methods Summary
public voidfinish()

    ConfigureWizard cfWizard = ((ConfigureWizard)wizard);
    COConfigurationManager.setParameter("Max Upload Speed KBs",cfWizard.maxUpSpeed);
    COConfigurationManager.setParameter("Max Uploads",cfWizard.nbUploadsPerTorrent);
    COConfigurationManager.setParameter("max active torrents",cfWizard.maxActiveTorrents);
    COConfigurationManager.setParameter("max downloads",cfWizard.maxDownloads);
    COConfigurationManager.setParameter("TCP.Listen.Port",cfWizard.serverTCPListenPort);
    COConfigurationManager.setParameter("UDP.Listen.Port",cfWizard.serverTCPListenPort);
    COConfigurationManager.setParameter("UDP.NonData.Listen.Port",cfWizard.serverTCPListenPort);
    //COConfigurationManager.setParameter("Low Port",cfWizard.serverMinPort);
	//COConfigurationManager.setParameter("High Port",cfWizard.serverMaxPort);
	//COConfigurationManager.setParameter("Server.shared.port",cfWizard.serverSharePort);
    COConfigurationManager.setParameter("General_sDefaultTorrent_Directory",cfWizard.torrentPath);
    //COConfigurationManager.setParameter("Use Resume",cfWizard.fastResume);
    COConfigurationManager.setParameter("Wizard Completed",true);
    COConfigurationManager.save();
    wizard.switchToClose();
    cfWizard.completed = true;
  
public booleanisPreviousEnabled()

    return false;
  
public voidshow()

    wizard.setTitle(MessageText.getString("configureWizard.finish.title"));
    //wizard.setCurrentInfo(MessageText.getString("configureWizard.nat.hint"));
    Composite rootPanel = wizard.getPanel();
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    rootPanel.setLayout(layout);

    Composite panel = new Composite(rootPanel, SWT.NULL);
    GridData gridData = new GridData(GridData.VERTICAL_ALIGN_CENTER | GridData.FILL_HORIZONTAL);
    panel.setLayoutData(gridData);
    layout = new GridLayout();
    layout.numColumns = 3;
    panel.setLayout(layout);

    Label label = new Label(panel, SWT.WRAP);
    gridData = new GridData();
    gridData.horizontalSpan = 3;
    gridData.widthHint = 380;
    label.setLayoutData(gridData);
    Messages.setLanguageText(label, "configureWizard.finish.message");