org.gudy.azureus2.ui.swt.config
Class IntParameter

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.config.Parameter
      extended by org.gudy.azureus2.ui.swt.config.IntParameter
All Implemented Interfaces:
IParameter

public class IntParameter
extends Parameter

Creates a config Parameter linked to a GenericIntParameter

Author:
Olivier

Field Summary
protected  GenericIntParameter delegate
           
 
Fields inherited from class org.gudy.azureus2.ui.swt.config.Parameter
change_listeners, config_adapter
 
Constructor Summary
IntParameter(org.eclipse.swt.widgets.Composite composite, String name)
           
IntParameter(org.eclipse.swt.widgets.Composite composite, String name, int defaultValue)
          Deprecated. defaultValue should be set via ConfigurationDefaults, not passed by the caller
IntParameter(org.eclipse.swt.widgets.Composite composite, String name, int minValue, int maxValue)
           
 
Method Summary
 org.eclipse.swt.widgets.Control getControl()
           
 int getValue()
           
 Object getValueObject()
           
 boolean isGeneratingIntermediateEvents()
           
 boolean isInitialised()
           
 void resetToDefault()
           
 void setGenerateIntermediateEvents(boolean generateIntermediateEvents)
           
 void setLayoutData(Object layoutData)
           
 void setMaximumValue(int value)
           
 void setMinimumValue(int value)
           
 void setValue(int value)
           
 void setValue(Object value)
           
 
Methods inherited from class org.gudy.azureus2.ui.swt.config.Parameter
addChangeListener, getControls, isDisposed, removeChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected GenericIntParameter delegate
Constructor Detail

IntParameter

public IntParameter(org.eclipse.swt.widgets.Composite composite,
                    String name)

IntParameter

public IntParameter(org.eclipse.swt.widgets.Composite composite,
                    String name,
                    int defaultValue)
Deprecated. defaultValue should be set via ConfigurationDefaults, not passed by the caller


IntParameter

public IntParameter(org.eclipse.swt.widgets.Composite composite,
                    String name,
                    int minValue,
                    int maxValue)
Method Detail

isInitialised

public boolean isInitialised()
Overrides:
isInitialised in class Parameter

setMinimumValue

public void setMinimumValue(int value)

setMaximumValue

public void setMaximumValue(int value)

setValue

public void setValue(int value)

resetToDefault

public void resetToDefault()

getValue

public int getValue()

setLayoutData

public void setLayoutData(Object layoutData)

getControl

public org.eclipse.swt.widgets.Control getControl()

isGeneratingIntermediateEvents

public boolean isGeneratingIntermediateEvents()

setGenerateIntermediateEvents

public void setGenerateIntermediateEvents(boolean generateIntermediateEvents)

setValue

public void setValue(Object value)
Specified by:
setValue in class Parameter

getValueObject

public Object getValueObject()
Overrides:
getValueObject in class Parameter