Interface IScrollBarProxy
- All Known Implementing Classes:
NullScrollBarProxy
,ScrollBarProxyAdapter
public interface IScrollBarProxy
Used by Grid to externalize the scrollbars from the table itself.
- Version:
- 1.0.0
-
Method Summary
Modifier and Type Method 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.
-
Method Details
-
getVisible
boolean getVisible()Returns the scrollbar's visibility.- Returns:
- true if the scrollbar is visible.
-
setVisible
void setVisible(boolean visible)Sets the scrollbar's visibility.- Parameters:
visible
- visibilty
-
getSelection
int getSelection()Returns the selection.- Returns:
- the selection.
-
setSelection
void setSelection(int selection)Sets the selection.- Parameters:
selection
- selection to set
-
setValues
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.- Parameters:
selection
- selectionmin
- minimummax
- maximumthumb
- thumbincrement
- incrementpageIncrement
- page increment
-
handleMouseWheel
void handleMouseWheel(org.eclipse.swt.widgets.Event e)- Parameters:
e
-
-
setMinimum
void setMinimum(int min)- Parameters:
min
-
-
getMinimum
int getMinimum()- Returns:
- min
-
setMaximum
void setMaximum(int max)- Parameters:
max
-
-
getMaximum
int getMaximum()- Returns:
- max
-
setThumb
void setThumb(int thumb)- Parameters:
thumb
-
-
getThumb
int getThumb()- Returns:
- thumb
-
setIncrement
void setIncrement(int increment)- Parameters:
increment
-
-
getIncrement
int getIncrement()- Returns:
- increment
-
setPageIncrement
void setPageIncrement(int page)- Parameters:
page
-
-
getPageIncrement
int getPageIncrement()- Returns:
- page increment
-
addSelectionListener
void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)- Parameters:
listener
-
-
removeSelectionListener
void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)- Parameters:
listener
-
-
addListener
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. When the event does occur in the widget, the listener is notified by sending it thehandleEvent()
message. The event type is one of the event constants defined in classSWT
.- Parameters:
eventType
- the type of event to listen forlistener
- the listener which should be notified when the event occurs- Throws:
java.lang.IllegalArgumentException
-- ERROR_NULL_ARGUMENT - if the listener is null
org.eclipse.swt.SWTException
-- ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
- See Also:
Listener
,SWT
,removeListener(int, Listener)
-
removeListener
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. The event type is one of the event constants defined in classSWT
.- Parameters:
eventType
- the type of event to listen forlistener
- the listener which should no longer be notified- Throws:
java.lang.IllegalArgumentException
-- ERROR_NULL_ARGUMENT - if the listener is null
org.eclipse.swt.SWTException
-- ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
- See Also:
Listener
,SWT
,addListener(int, org.eclipse.swt.widgets.Listener)
-