public class ScrollBarProxyAdapter extends java.lang.Object implements IScrollBarProxy
Constructor and Description |
---|
ScrollBarProxyAdapter(org.eclipse.swt.widgets.ScrollBar scrollBar)
Contructs this adapter by delegating to the given scroll bar.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(int eventType,
org.eclipse.swt.widgets.Listener listener)
Adds the listener to the collection of listeners who will
be notified when an event of the given type occurs.
|
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener) |
int |
getIncrement() |
int |
getMaximum() |
int |
getMinimum() |
int |
getPageIncrement() |
int |
getSelection()
Returns the selection.
|
int |
getThumb() |
boolean |
getVisible()
Returns the scrollbar's visibility.
|
void |
handleMouseWheel(org.eclipse.swt.widgets.Event e) |
void |
removeListener(int eventType,
org.eclipse.swt.widgets.Listener listener)
Removes the listener from the collection of listeners who will
be notified when an event of the given type occurs.
|
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener) |
void |
setIncrement(int value) |
void |
setMaximum(int value) |
void |
setMinimum(int value) |
void |
setPageIncrement(int value) |
void |
setSelection(int selection)
Sets the selection.
|
void |
setThumb(int value) |
void |
setValues(int selection,
int minimum,
int maximum,
int thumb,
int increment,
int pageIncrement)
Sets the receiver's selection, minimum value, maximum value, thumb,
increment and page increment all at once.
|
void |
setVisible(boolean visible)
Sets the scrollbar's visibility.
|
public ScrollBarProxyAdapter(org.eclipse.swt.widgets.ScrollBar scrollBar)
scrollBar
- delegatepublic int getIncrement()
getIncrement
in interface IScrollBarProxy
public int getMaximum()
getMaximum
in interface IScrollBarProxy
public int getMinimum()
getMinimum
in interface IScrollBarProxy
public int getPageIncrement()
getPageIncrement
in interface IScrollBarProxy
public int getSelection()
getSelection
in interface IScrollBarProxy
public int getThumb()
getThumb
in interface IScrollBarProxy
public boolean getVisible()
getVisible
in interface IScrollBarProxy
public void setIncrement(int value)
setIncrement
in interface IScrollBarProxy
public void setMaximum(int value)
setMaximum
in interface IScrollBarProxy
public void setMinimum(int value)
setMinimum
in interface IScrollBarProxy
public void setPageIncrement(int value)
setPageIncrement
in interface IScrollBarProxy
public void setSelection(int selection)
setSelection
in interface IScrollBarProxy
selection
- selection to setpublic void setThumb(int value)
setThumb
in interface IScrollBarProxy
public void setValues(int selection, int minimum, int maximum, int thumb, int increment, int pageIncrement)
setValues
in interface IScrollBarProxy
selection
- selectionminimum
- minimummaximum
- maximumthumb
- thumbincrement
- incrementpageIncrement
- page incrementpublic void setVisible(boolean visible)
setVisible
in interface IScrollBarProxy
visible
- visibiltypublic void handleMouseWheel(org.eclipse.swt.widgets.Event e)
handleMouseWheel
in interface IScrollBarProxy
public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
addSelectionListener
in interface IScrollBarProxy
public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
removeSelectionListener
in interface IScrollBarProxy
public void addListener(int eventType, org.eclipse.swt.widgets.Listener listener)
IScrollBarProxy
handleEvent()
message. The event
type is one of the event constants defined in class SWT
.addListener
in interface IScrollBarProxy
eventType
- the type of event to listen forlistener
- the listener which should be notified when the event occursIScrollBarProxy.addListener(int, org.eclipse.swt.widgets.Listener)
public void removeListener(int eventType, org.eclipse.swt.widgets.Listener listener)
IScrollBarProxy
SWT
.removeListener
in interface IScrollBarProxy
eventType
- the type of event to listen forlistener
- the listener which should no longer be notifiedIScrollBarProxy.removeListener(int, org.eclipse.swt.widgets.Listener)