FileDocCategorySizeDatePackage
ConfigParameterImpl.javaAPI DocAzureus 3.0.3.42074Thu Feb 09 19:43:20 GMT 2006org.gudy.azureus2.pluginsimpl.local.config

ConfigParameterImpl

public class ConfigParameterImpl extends Object implements ConfigParameter, org.gudy.azureus2.core3.config.ParameterListener
author
parg

Fields Summary
protected String
key
protected List
listeners
Constructors Summary
public ConfigParameterImpl(String _key)

	
	
	
								 
	
		key		= _key;
	
Methods Summary
public voidaddConfigParameterListener(ConfigParameterListener l)

		listeners.add(l);
		
		if ( listeners.size() == 1 ){
			
			COConfigurationManager.addParameterListener( key, this );
		}		
	
public voidparameterChanged(java.lang.String parameterName)

		for ( int i=0;i<listeners.size();i++){
			
			((ConfigParameterListener)listeners.get(i)).configParameterChanged( this );
		}
	
public voidremoveConfigParameterListener(ConfigParameterListener l)

		listeners.remove(l);
		
		if ( listeners.size() == 0 ){
			
			COConfigurationManager.removeParameterListener( key, this );
		}