Class SpeedTestSetLimitPanel

java.lang.Object
com.biglybt.ui.swt.wizard.AbstractWizardPanel
com.biglybt.ui.swt.speedtest.SpeedTestSetLimitPanel
All Implemented Interfaces:
IWizardPanel

public class SpeedTestSetLimitPanel extends AbstractWizardPanel
  • Field Details

    • measuredUploadKbps

      private int measuredUploadKbps
    • measuredDownloadKbps

      private int measuredDownloadKbps
    • downloadTestRan

      private boolean downloadTestRan
    • uploadTestRan

      private boolean uploadTestRan
    • downloadHitLimit

      private boolean downloadHitLimit
    • uploadHitLimit

      private boolean uploadHitLimit
    • apply

      private org.eclipse.swt.widgets.Button apply
    • downConfLevelCombo

      private org.eclipse.swt.widgets.Combo downConfLevelCombo
    • upConfLevelCombo

      private org.eclipse.swt.widgets.Combo upConfLevelCombo
    • speedManager

      private SpeedManager speedManager
    • helper

      private LimitToTextHelper helper
  • Constructor Details

    • SpeedTestSetLimitPanel

      public SpeedTestSetLimitPanel(Wizard wizard, IWizardPanel previousPanel, int upload, long maxup, int download, long maxdown)
  • Method Details

    • show

      public void show()
      Panel has text at the top explaining the result. Then under that it has a label the measured upload value and the recommended value. Then a button with apply.
    • addDropElements

      private void addDropElements(org.eclipse.swt.widgets.Combo combo, String[] elements)
    • setDefaultConfidenceLevelEx

      private int setDefaultConfidenceLevelEx(int transferRateKBPS, boolean testRan, boolean isUpload, String[] values)
      Parameters:
      transferRateKBPS - -
      testRan - -
      isUpload - -
      values - -
      Returns:
      - index of dropdown that matches or -1 to indicate no match.
    • createResultLabels

      private void createResultLabels(org.eclipse.swt.widgets.Composite panel, boolean hadError)
      Create a label for the test. The layout is assumed to be five across. If an error occured in the test then the units are not printed out.
      Parameters:
      panel - -
      hadError - - true if the test had an error.
    • createResultData

      private void createResultData(org.eclipse.swt.widgets.Composite panel, String label, int rate)
    • createTestDesc

      private void createTestDesc(org.eclipse.swt.widgets.Composite panel)
    • createErrorDesc

      private void createErrorDesc(org.eclipse.swt.widgets.Composite panel, String error)
    • determineRateSettingEx

      public int determineRateSettingEx(int measuredRate, boolean testRan, boolean isUpload)
    • finish

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

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

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

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