FileDocCategorySizeDatePackage
BooleanParameterImpl.javaAPI DocAzureus 3.0.3.41969Fri Mar 09 15:32:08 GMT 2007org.gudy.azureus2.pluginsimpl.local.ui.config

BooleanParameterImpl

public class BooleanParameterImpl extends ParameterImpl implements org.gudy.azureus2.plugins.ui.config.BooleanParameter
author
Olivier

Fields Summary
Constructors Summary
public BooleanParameterImpl(org.gudy.azureus2.plugins.PluginConfig config, String key, String label, boolean defaultValue)

 
		super( config, key, label);
 
		COConfigurationManager.setBooleanDefault( getKey(), defaultValue );
	
Methods Summary
public booleangetDefaultValue()

		try {
			return ConfigurationDefaults.getInstance().getBooleanParameter(getKey());
		} catch (ConfigurationParameterNotFoundException e) {
		}
		return false;
	
public booleangetValue()

		return( config.getBooleanParameter( getKey(), getDefaultValue()));
	
public voidsetValue(boolean b)

		COConfigurationManager.setParameter( getKey(), b );