public interface IScrollingProvider
IScrollingProvider
interface is provided by viewers that
supporting scrolling within the content viewer pane.IContentViewer
Modifier and Type | Field and Description |
---|---|
static int |
HORIZONTAL_SCROLLING
Specifies horizontal scrolling that occured
|
static int |
VERTICAL_SCROLLING
Specifies vertical scrolling that occured
|
Modifier and Type | Method and Description |
---|---|
void |
addScrollingEventListener(IScrollingListener listener)
Adds a listener for scrolling changes.
|
int |
getSelection(int scrollingType)
Gets the single selection that is the receiver's value for the specified
scrolling type.
|
void |
removeScrollingEventListener(IScrollingListener listener)
Removes a listener for scrolling changes.
|
void |
setSelection(int scrollingType,
int selection)
Sets the single selection that is the receiver's value to the specified
selection which must be greater than or equal to zero for the specified
scrolling type.
|
static final int HORIZONTAL_SCROLLING
static final int VERTICAL_SCROLLING
void addScrollingEventListener(IScrollingListener listener)
listener
- a scrolling listenerint getSelection(int scrollingType)
scrollingType
- the type of scrolling, e.g. HORIZONTAL_SCROLLING
void removeScrollingEventListener(IScrollingListener listener)
listener
- a scrolling listenervoid setSelection(int scrollingType, int selection)
scrollingType
- the type of scrolling , e.g. HORIZONTAL_SCROLLING
selection
- the new selection (must be zero or greater)