com.limegroup.gnutella.gui.options.panes
Class MaximumUploadsPaneItem

java.lang.Object
  extended bycom.limegroup.gnutella.gui.options.panes.AbstractPaneItem
      extended bycom.limegroup.gnutella.gui.options.panes.MaximumUploadsPaneItem
All Implemented Interfaces:
PaneItem

public final class MaximumUploadsPaneItem
extends AbstractPaneItem

This class defines the panel in the options window that allows the user to change the maximum number of dowloads to allow at any one time.


Field Summary
 
Fields inherited from class com.limegroup.gnutella.gui.options.panes.AbstractPaneItem
MEDIATOR
 
Constructor Summary
MaximumUploadsPaneItem(java.lang.String key)
          The constructor constructs all of the elements of this AbstractPaneItem.
 
Method Summary
 void applyOptions()
          Defines the abstract method in AbstractPaneItem.
 void initOptions()
          Defines the abstract method in AbstractPaneItem.
 
Methods inherited from class com.limegroup.gnutella.gui.options.panes.AbstractPaneItem
add, getContainer, getHorizontalSeparator, getVerticalSeparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaximumUploadsPaneItem

public MaximumUploadsPaneItem(java.lang.String key)
The constructor constructs all of the elements of this AbstractPaneItem.

Parameters:
key - the key for this AbstractPaneItem that the superclass uses to generate locale-specific keys
Method Detail

initOptions

public void initOptions()
Defines the abstract method in AbstractPaneItem.

Sets the options for the fields in this PaneItem when the window is shown.

Specified by:
initOptions in interface PaneItem
Specified by:
initOptions in class AbstractPaneItem

applyOptions

public void applyOptions()
                  throws java.io.IOException
Defines the abstract method in AbstractPaneItem.

Applies the options currently set in this window, displaying an error message to the user if a setting could not be applied.

Specified by:
applyOptions in interface PaneItem
Specified by:
applyOptions in class AbstractPaneItem
Throws:
java.io.IOException - if the options could not be applied for some reason