public class NullScrollBarProxy extends java.lang.Object implements IScrollBarProxy
Constructor and Description |
---|
NullScrollBarProxy() |
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 increment) |
void |
setMaximum(int max) |
void |
setMinimum(int min) |
void |
setPageIncrement(int page) |
void |
setSelection(int selection)
Sets the selection.
|
void |
setThumb(int thumb) |
void |
setValues(int selection,
int min,
int max,
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 boolean getVisible()
getVisible
in interface IScrollBarProxy
public void setVisible(boolean visible)
setVisible
in interface IScrollBarProxy
visible
- visibiltypublic int getSelection()
getSelection
in interface IScrollBarProxy
public void setSelection(int selection)
setSelection
in interface IScrollBarProxy
selection
- selection to setpublic void setValues(int selection, int min, int max, int thumb, int increment, int pageIncrement)
setValues
in interface IScrollBarProxy
selection
- selectionmin
- minimummax
- maximumthumb
- thumbincrement
- incrementpageIncrement
- page incrementpublic void handleMouseWheel(org.eclipse.swt.widgets.Event e)
handleMouseWheel
in interface IScrollBarProxy
public void setMinimum(int min)
setMinimum
in interface IScrollBarProxy
public int getMinimum()
getMinimum
in interface IScrollBarProxy
public void setMaximum(int max)
setMaximum
in interface IScrollBarProxy
public int getMaximum()
getMaximum
in interface IScrollBarProxy
public void setThumb(int thumb)
setThumb
in interface IScrollBarProxy
public int getThumb()
getThumb
in interface IScrollBarProxy
public void setIncrement(int increment)
setIncrement
in interface IScrollBarProxy
public int getIncrement()
getIncrement
in interface IScrollBarProxy
public void setPageIncrement(int page)
setPageIncrement
in interface IScrollBarProxy
public int getPageIncrement()
getPageIncrement
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)