org.gudy.azureus2.pluginsimpl.local.config
Class ConfigParameterImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.config.ConfigParameterImpl
All Implemented Interfaces:
ParameterListener, ConfigParameter

public class ConfigParameterImpl
extends Object
implements ConfigParameter, ParameterListener


Field Summary
protected  String key
           
protected  List listeners
           
 
Constructor Summary
ConfigParameterImpl(String _key)
           
 
Method Summary
 void addConfigParameterListener(ConfigParameterListener l)
           
 void parameterChanged(String parameterName)
          Called, when a parameter has changed.
 void removeConfigParameterListener(ConfigParameterListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected String key

listeners

protected List listeners
Constructor Detail

ConfigParameterImpl

public ConfigParameterImpl(String _key)
Method Detail

parameterChanged

public void parameterChanged(String parameterName)
Description copied from interface: ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.

Specified by:
parameterChanged in interface ParameterListener
Parameters:
parameterName - the name of the parameter that has changed

addConfigParameterListener

public void addConfigParameterListener(ConfigParameterListener l)
Specified by:
addConfigParameterListener in interface ConfigParameter

removeConfigParameterListener

public void removeConfigParameterListener(ConfigParameterListener l)
Specified by:
removeConfigParameterListener in interface ConfigParameter