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

IntParameter

public class IntParameter extends Parameter
author
Olivier

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

  	super(name);
	  delegate = new GenericIntParameter(config_adapter, composite, name);
  
public IntParameter(org.eclipse.swt.widgets.Composite composite, String name, int defaultValue)

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

  	super(name);
	  delegate = new GenericIntParameter(config_adapter, composite, name,
				defaultValue);
  
public IntParameter(org.eclipse.swt.widgets.Composite composite, String name, int minValue, int maxValue)

  	super(name);
	  delegate = new GenericIntParameter(config_adapter, composite, name,
				minValue, maxValue);
  
Methods Summary
public org.eclipse.swt.widgets.ControlgetControl()

  	return( delegate.getControl());
  
public intgetValue()

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

  	return new Integer(getValue());
  
public booleanisGeneratingIntermediateEvents()

		return delegate.isGeneratingIntermediateEvents();
	
public voidresetToDefault()

	  delegate.resetToDefault();
  
public voidsetGenerateIntermediateEvents(boolean generateIntermediateEvents)

		delegate.setGenerateIntermediateEvents(generateIntermediateEvents);
	
public voidsetLayoutData(java.lang.Object layoutData)

   delegate.setLayoutData( layoutData );
  
public voidsetMaximumValue(int value)

  	delegate.setMaximumValue( value );
  
public voidsetMinimumValue(int value)

	  delegate.setMinimumValue( value );
  
public voidsetValue(java.lang.Object value)

  	if (value instanceof Number) {
  		setValue(((Number)value).intValue());
  	}
  
public voidsetValue(int value)

	  delegate.setValue( value );