FileDocCategorySizeDatePackage
BooleanParameter.javaAPI DocAzureus 3.0.3.43743Mon Jan 15 22:37:24 GMT 2007org.gudy.azureus2.ui.swt.config

BooleanParameter

public class BooleanParameter extends Parameter
author
Olivier

Fields Summary
protected org.gudy.azureus2.ui.swt.config.generic.GenericBooleanParameter
delegate
Constructors Summary
public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String name)

  	super(name);
	  delegate = new GenericBooleanParameter( config_adapter, composite,name,COConfigurationManager.getBooleanParameter(name),null,null);
  
public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String name, String textKey)

  	super(name);
	  delegate = new GenericBooleanParameter( config_adapter, composite, name, COConfigurationManager.getBooleanParameter(name),
         textKey, null);
  
public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String name, boolean defaultValue, String textKey)

deprecated
defaultValue should be set via ConfigurationDefaults, not passed by the caller

  	super(name);
	  delegate = new GenericBooleanParameter( config_adapter, composite,name,defaultValue,textKey,null);
  
public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String name, boolean defaultValue)

deprecated
defaultValue should be set via ConfigurationDefaults, not passed by the caller

  	super(name);
	  delegate = new GenericBooleanParameter( config_adapter, composite,name,defaultValue,null,null);
  
public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String _name, boolean _defaultValue, String textKey, IAdditionalActionPerformer actionPerformer)

deprecated
defaultValue should be set via ConfigurationDefaults, not passed by the caller

  	super(_name);
	  delegate = new GenericBooleanParameter( config_adapter, composite, _name, _defaultValue, textKey, actionPerformer );
  
Methods Summary
public org.eclipse.swt.widgets.ControlgetControl()

    return delegate.getControl();
  
public java.lang.StringgetName()

  	return delegate.getName();
  
public java.lang.ObjectgetValueObject()

  	return new Boolean(isSelected());
  
public booleanisSelected()

  	return(delegate.isSelected());
  
public voidsetAdditionalActionPerformer(IAdditionalActionPerformer actionPerformer)

	 delegate.setAdditionalActionPerformer( actionPerformer );
  
public voidsetLayoutData(java.lang.Object layoutData)

   delegate.setLayoutData( layoutData );
  
public voidsetName(java.lang.String newName)

  	delegate.setName( newName );
  
public voidsetSelected(boolean selected)

  	delegate.setSelected( selected );
  
public voidsetValue(java.lang.Object value)

  	if (value instanceof Boolean) {
  		setSelected(((Boolean)value).booleanValue());
  	}