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 IScrollBarProxypublic int getMaximum()
getMaximum in interface IScrollBarProxypublic int getMinimum()
getMinimum in interface IScrollBarProxypublic int getPageIncrement()
getPageIncrement in interface IScrollBarProxypublic int getSelection()
getSelection in interface IScrollBarProxypublic int getThumb()
getThumb in interface IScrollBarProxypublic boolean getVisible()
getVisible in interface IScrollBarProxypublic void setIncrement(int value)
setIncrement in interface IScrollBarProxypublic void setMaximum(int value)
setMaximum in interface IScrollBarProxypublic void setMinimum(int value)
setMinimum in interface IScrollBarProxypublic void setPageIncrement(int value)
setPageIncrement in interface IScrollBarProxypublic void setSelection(int selection)
setSelection in interface IScrollBarProxyselection - selection to setpublic void setThumb(int value)
setThumb in interface IScrollBarProxypublic void setValues(int selection,
int minimum,
int maximum,
int thumb,
int increment,
int pageIncrement)
setValues in interface IScrollBarProxyselection - selectionminimum - minimummaximum - maximumthumb - thumbincrement - incrementpageIncrement - page incrementpublic void setVisible(boolean visible)
setVisible in interface IScrollBarProxyvisible - visibiltypublic void handleMouseWheel(org.eclipse.swt.widgets.Event e)
handleMouseWheel in interface IScrollBarProxypublic void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
addSelectionListener in interface IScrollBarProxypublic void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
removeSelectionListener in interface IScrollBarProxypublic void addListener(int eventType,
org.eclipse.swt.widgets.Listener listener)
IScrollBarProxyhandleEvent() message. The event
type is one of the event constants defined in class SWT.addListener in interface IScrollBarProxyeventType - 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)
IScrollBarProxySWT.removeListener in interface IScrollBarProxyeventType - the type of event to listen forlistener - the listener which should no longer be notifiedIScrollBarProxy.removeListener(int, org.eclipse.swt.widgets.Listener)