FinishPanelpublic class FinishPanel extends org.gudy.azureus2.ui.swt.wizard.AbstractWizardPanel
Methods Summary |
---|
public void | finish()
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 boolean | isPreviousEnabled()
return false;
| public void | show()
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");
|
|