org.gudy.azureus2.ui.swt.config
Class IntParameter
java.lang.Object
org.gudy.azureus2.ui.swt.config.Parameter
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
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
protected GenericIntParameter delegate
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)
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