org.gudy.azureus2.ui.swt.speedtest
Class SpeedTestPanel

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.wizard.AbstractWizardPanel
      extended by org.gudy.azureus2.ui.swt.speedtest.SpeedTestPanel
All Implemented Interfaces:
NetworkAdminSpeedTesterListener, NetworkAdminSpeedTestScheduledTestListener, IWizardPanel

public class SpeedTestPanel
extends AbstractWizardPanel
implements NetworkAdminSpeedTestScheduledTestListener, NetworkAdminSpeedTesterListener


Field Summary
 
Fields inherited from class org.gudy.azureus2.ui.swt.wizard.AbstractWizardPanel
previousPanel, wizard
 
Constructor Summary
SpeedTestPanel(SpeedTestWizard _wizard, IWizardPanel _previousPanel)
           
 
Method Summary
 void cancel()
           
 void complete(NetworkAdminSpeedTester tester, NetworkAdminSpeedTesterResult result)
          When a test completes.
 void complete(NetworkAdminSpeedTestScheduledTest test)
           
 void finish()
           
 IWizardPanel getFinishPanel()
           
 IWizardPanel getNextPanel()
           
 boolean isFinishEnabled()
           
 boolean isFinishSelectionOK()
          This method is called when the "finish" button is pressed.
 boolean isNextEnabled()
           
protected  void reportComplete(NetworkAdminSpeedTesterResult result)
           
protected  void reportStage(java.lang.String step)
           
protected  void runTest(int test_mode, boolean encrypt_mode)
           
 void show()
           
 void stage(NetworkAdminSpeedTester tester, java.lang.String step)
          Informs listener when the test is at a new stage.
 void stage(NetworkAdminSpeedTestScheduledTest test, java.lang.String step)
           
protected  void switchToClose()
           
 
Methods inherited from class org.gudy.azureus2.ui.swt.wizard.AbstractWizardPanel
cancelled, getPreviousPanel, isPreviousEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpeedTestPanel

public SpeedTestPanel(SpeedTestWizard _wizard,
                      IWizardPanel _previousPanel)
Method Detail

show

public void show()
Specified by:
show in interface IWizardPanel

finish

public void finish()
Specified by:
finish in interface IWizardPanel
Overrides:
finish in class AbstractWizardPanel

cancel

public void cancel()

runTest

protected void runTest(int test_mode,
                       boolean encrypt_mode)

stage

public void stage(NetworkAdminSpeedTestScheduledTest test,
                  java.lang.String step)
Specified by:
stage in interface NetworkAdminSpeedTestScheduledTestListener

complete

public void complete(NetworkAdminSpeedTestScheduledTest test)
Specified by:
complete in interface NetworkAdminSpeedTestScheduledTestListener

stage

public void stage(NetworkAdminSpeedTester tester,
                  java.lang.String step)
Description copied from interface: NetworkAdminSpeedTesterListener
Informs listener when the test is at a new stage.

Specified by:
stage in interface NetworkAdminSpeedTesterListener
Parameters:
tester - - test running.
step - - String with stage.

complete

public void complete(NetworkAdminSpeedTester tester,
                     NetworkAdminSpeedTesterResult result)
Description copied from interface: NetworkAdminSpeedTesterListener
When a test completes.

Specified by:
complete in interface NetworkAdminSpeedTesterListener
Parameters:
tester - - test ran
result - - String with the result

reportComplete

protected void reportComplete(NetworkAdminSpeedTesterResult result)

reportStage

protected void reportStage(java.lang.String step)

switchToClose

protected void switchToClose()

isFinishEnabled

public boolean isFinishEnabled()
Specified by:
isFinishEnabled in interface IWizardPanel
Overrides:
isFinishEnabled in class AbstractWizardPanel

isFinishSelectionOK

public boolean isFinishSelectionOK()
Description copied from interface: IWizardPanel
This method is called when the "finish" button is pressed. It allows operations to be carried out before the "finish" panel is shown.

Specified by:
isFinishSelectionOK in interface IWizardPanel
Overrides:
isFinishSelectionOK in class AbstractWizardPanel
Returns:
true - carry on and show the finish panel; false - operation failed, leave on current panel

getFinishPanel

public IWizardPanel getFinishPanel()
Specified by:
getFinishPanel in interface IWizardPanel
Overrides:
getFinishPanel in class AbstractWizardPanel

isNextEnabled

public boolean isNextEnabled()
Specified by:
isNextEnabled in interface IWizardPanel
Overrides:
isNextEnabled in class AbstractWizardPanel

getNextPanel

public IWizardPanel getNextPanel()
Specified by:
getNextPanel in interface IWizardPanel
Overrides:
getNextPanel in class AbstractWizardPanel