Type Slider
Extends
Control.
RWT Scripting analoge to org.eclipse.swt.widgets.Slider
Constructor Attributes | Constructor Name and Description |
---|---|
Slider()
The constructor is not public.
|
Method Attributes | Method Name and Description |
---|---|
Returns the maximum value which the receiver will allow.
|
|
Returns the minimum value which the receiver will allow.
|
|
Returns the 'selection', which is the receiver's position.
|
|
setSelection(selection)
Sets the 'selection', which is the receiver's value, to the argument which
must be greater than or equal to zero.
|
- Methods borrowed from class Control:
- addListener, forceFocus, getBackground, getCursor, getEnabled, getForeground, getToolTipText, getVisible, removeListener, setBackground, setEnabled, setForeground, setToolTipText, setVisible
- Methods borrowed from class Widget:
- getData, setData
Event Attributes | Event Name and Description |
---|---|
Sent when the widget selection is changed
|
- Events borrowed from class Control:
- Dispose, FocusIn, FocusOut, Hide, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseMove, MouseUp, MouseWheel, Paint, Show
Method Detail
{int}
getMaximum()
Returns the maximum value which the receiver will allow.
- Returns:
- {int} the maximum
{int}
getMinimum()
Returns the minimum value which the receiver will allow.
- Returns:
- {int} the minimum
{int}
getSelection()
Returns the 'selection', which is the receiver's position.
- Returns:
- {int} the selection
setSelection(selection)
Sets the 'selection', which is the receiver's value, to the argument which
must be greater than or equal to zero.
- Parameters:
- {int} selection
- the new selection (must be zero or greater)
Event Detail
Selection
Sent when the widget selection is changed
- Parameters:
- {Event} event
- See:
- SWT.Selection