Class ProxySettingsOptionsPanel

All Implemented Interfaces:
OptionsPanel, ImageObserver, MenuContainer, Serializable, Accessible

public class ProxySettingsOptionsPanel extends OptionsPanelV2
Allows to configure the network connection (through a proxy HTTP or SOCKS)

Configures the proxy properties and allows to check if the connection is correct

Since:
Kosmo 2.0, OJ 1.8
Author:
Sergio BaƱos Calvo, Ede
See Also:
  • Field Details

    • ICON

      public static final Icon ICON
      Panel icon
    • HTTP_PROXY_SETTINGS_ENABLED

      public static final String HTTP_PROXY_SETTINGS_ENABLED
      Network configuration keys
    • HTTP_PROXY_SETTINGS_KEY

      public static final String HTTP_PROXY_SETTINGS_KEY
    • TEST_URL_KEY

      public static final String TEST_URL_KEY
    • READ_TIMEOUT_KEY

      public static final String READ_TIMEOUT_KEY
    • OPEN_TIMEOUT_KEY

      public static final String OPEN_TIMEOUT_KEY
    • SUCCESSFULL_CONNECTION_ICON

      public static final Icon SUCCESSFULL_CONNECTION_ICON
      Connection status icons and labels
    • FAILED_CONNECTION_ICON

      public static final Icon FAILED_CONNECTION_ICON
    • SUCCESSFULL_CONNECTION_LABEL

      public static final String SUCCESSFULL_CONNECTION_LABEL
    • FAILED_CONNECTION_LABEL

      public static final String FAILED_CONNECTION_LABEL
    • NAME

      public static final String NAME
      Nombre asociado al panel de configuracion
    • blackboard

      protected Blackboard blackboard
      System blackboard
  • Method Details

    • refreshEditability

      protected void refreshEditability()
      Refresh the components editability depending on the http proxy checkbox
    • getIcon

      public Icon getIcon()
      Description copied from class: OptionsPanelV2
      Get the icon associated to this options panel. It will be visible in its tab

      Return null if there is no icon associated to it

      Specified by:
      getIcon in class OptionsPanelV2
    • getName

      public String getName()
      Description copied from class: OptionsPanelV2
      Get the name for this options panel. It will be visible in its tab.
      Specified by:
      getName in class OptionsPanelV2
    • init

      public void init()
      Description copied from class: OptionsPanelV2
      Notifies this panel that the OptionsDialog has been (re-)opened
      Specified by:
      init in interface OptionsPanel
      Specified by:
      init in class OptionsPanelV2
    • okPressed

      public void okPressed()
      Description copied from class: OptionsPanelV2
      Notifies this panel that it should commit its entries to the system
      Specified by:
      okPressed in interface OptionsPanel
      Specified by:
      okPressed in class OptionsPanelV2
    • validateInput

      public String validateInput()
      Specified by:
      validateInput in interface OptionsPanel
      Specified by:
      validateInput in class OptionsPanelV2
      Returns:
      an error message if a field is not valid; otherwise, null
    • restoreSystemSettings

      public static void restoreSystemSettings(Blackboard blackboard)
    • getInstance

      public static ProxySettingsOptionsPanel getInstance()
    • getSetting

      public Object getSetting(String key)