org.gudy.azureus2.ui.swt.views.configsections
Class ConfigSectionTransferAutoSpeedSelect

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.configsections.ConfigSectionTransferAutoSpeedSelect
All Implemented Interfaces:
ConfigSection, UISWTConfigSection

public class ConfigSectionTransferAutoSpeedSelect
extends java.lang.Object
implements UISWTConfigSection

Created on Jun 13, 2007 Created by Alan Snyder Copyright (C) Azureus Software, Inc, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Field Summary
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.config.ConfigSection
SECTION_CONNECTION, SECTION_FILES, SECTION_INTERFACE, SECTION_PLUGINS, SECTION_ROOT, SECTION_TRACKER, SECTION_TRANSFER
 
Constructor Summary
ConfigSectionTransferAutoSpeedSelect()
           
 
Method Summary
 org.eclipse.swt.widgets.Composite configSectionCreate(org.eclipse.swt.widgets.Composite parent)
          Create your own configuration panel here.
 void configSectionDelete()
          Config view is closing
 java.lang.String configSectionGetName()
          In order for the plugin to display its section correctly, a key in the Plugin language file will need to contain ConfigView.section.<configSectionGetName() result>=The Section name.
 java.lang.String configSectionGetParentSection()
          Returns section you want your configuration panel to be under.
 void configSectionSave()
          User selected Save.
protected  java.lang.String getMBitLimit(TransferStatsView.limitToTextHelper helper, long value)
           
 int maxUserMode()
          Indicate if additional options are available to display a hint to the users
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigSectionTransferAutoSpeedSelect

public ConfigSectionTransferAutoSpeedSelect()
Method Detail

configSectionGetParentSection

public java.lang.String configSectionGetParentSection()
Returns section you want your configuration panel to be under. See SECTION_* constants. To add a subsection to your own ConfigSection, return the configSectionGetName result of your parent.

Specified by:
configSectionGetParentSection in interface ConfigSection

configSectionGetName

public java.lang.String configSectionGetName()
In order for the plugin to display its section correctly, a key in the Plugin language file will need to contain ConfigView.section.<configSectionGetName() result>=The Section name.

Specified by:
configSectionGetName in interface ConfigSection
Returns:
The name of the configuration section

configSectionSave

public void configSectionSave()
User selected Save. All saving of non-plugin tabs have been completed, as well as saving of plugins that implement org.gudy.azureus2.plugins.ui.config parameters.

Specified by:
configSectionSave in interface ConfigSection

configSectionDelete

public void configSectionDelete()
Config view is closing

Specified by:
configSectionDelete in interface ConfigSection

maxUserMode

public int maxUserMode()
Description copied from interface: UISWTConfigSection
Indicate if additional options are available to display a hint to the users

Specified by:
maxUserMode in interface UISWTConfigSection
Returns:
the highest user mode that reveals additional options (0 = Beginner, 1 = Intermediate, 2 = Advanced)

configSectionCreate

public org.eclipse.swt.widgets.Composite configSectionCreate(org.eclipse.swt.widgets.Composite parent)
Create your own configuration panel here. It can be anything that inherits from SWT's Composite class. Please be mindfull of small screen resolutions

Specified by:
configSectionCreate in interface UISWTConfigSection
Parameters:
parent - The parent of your configuration panel
Returns:
your configuration panel

getMBitLimit

protected java.lang.String getMBitLimit(TransferStatsView.limitToTextHelper helper,
                                        long value)