Class ScrollBarProxyAdapter
- java.lang.Object
-
- org.eclipse.nebula.widgets.grid.internal.ScrollBarProxyAdapter
-
- All Implemented Interfaces:
IScrollBarProxy
public class ScrollBarProxyAdapter extends java.lang.Object implements IScrollBarProxy
Adapts a normal scrollbar to the IScrollBar proxy.- Since:
- 2.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.ScrollBarscrollBarDelegates to this scrollbar.
-
Constructor Summary
Constructors Constructor Description ScrollBarProxyAdapter(org.eclipse.swt.widgets.ScrollBar scrollBar)Contructs this adapter by delegating to the given scroll bar.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(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.voidaddSelectionListener(org.eclipse.swt.events.SelectionListener listener)intgetIncrement()intgetMaximum()intgetMinimum()intgetPageIncrement()intgetSelection()Returns the selection.intgetThumb()booleangetVisible()Returns the scrollbar's visibility.voidhandleMouseWheel(org.eclipse.swt.widgets.Event e)voidremoveListener(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.voidremoveSelectionListener(org.eclipse.swt.events.SelectionListener listener)voidsetIncrement(int value)voidsetMaximum(int value)voidsetMinimum(int value)voidsetPageIncrement(int value)voidsetSelection(int selection)Sets the selection.voidsetThumb(int value)voidsetValues(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.voidsetVisible(boolean visible)Sets the scrollbar's visibility.
-
-
-
Method Detail
-
getIncrement
public int getIncrement()
- Specified by:
getIncrementin interfaceIScrollBarProxy- Returns:
- increment
-
getMaximum
public int getMaximum()
- Specified by:
getMaximumin interfaceIScrollBarProxy- Returns:
- max
-
getMinimum
public int getMinimum()
- Specified by:
getMinimumin interfaceIScrollBarProxy- Returns:
- min
-
getPageIncrement
public int getPageIncrement()
- Specified by:
getPageIncrementin interfaceIScrollBarProxy- Returns:
- page increment
-
getSelection
public int getSelection()
Returns the selection.- Specified by:
getSelectionin interfaceIScrollBarProxy- Returns:
- the selection.
-
getThumb
public int getThumb()
- Specified by:
getThumbin interfaceIScrollBarProxy- Returns:
- thumb
-
getVisible
public boolean getVisible()
Returns the scrollbar's visibility.- Specified by:
getVisiblein interfaceIScrollBarProxy- Returns:
- true if the scrollbar is visible.
-
setIncrement
public void setIncrement(int value)
- Specified by:
setIncrementin interfaceIScrollBarProxy
-
setMaximum
public void setMaximum(int value)
- Specified by:
setMaximumin interfaceIScrollBarProxy
-
setMinimum
public void setMinimum(int value)
- Specified by:
setMinimumin interfaceIScrollBarProxy
-
setPageIncrement
public void setPageIncrement(int value)
- Specified by:
setPageIncrementin interfaceIScrollBarProxy
-
setSelection
public void setSelection(int selection)
Sets the selection.- Specified by:
setSelectionin interfaceIScrollBarProxy- Parameters:
selection- selection to set
-
setThumb
public void setThumb(int value)
- Specified by:
setThumbin interfaceIScrollBarProxy
-
setValues
public 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.- Specified by:
setValuesin interfaceIScrollBarProxy- Parameters:
selection- selectionminimum- minimummaximum- maximumthumb- thumbincrement- incrementpageIncrement- page increment
-
setVisible
public void setVisible(boolean visible)
Sets the scrollbar's visibility.- Specified by:
setVisiblein interfaceIScrollBarProxy- Parameters:
visible- visibilty
-
handleMouseWheel
public void handleMouseWheel(org.eclipse.swt.widgets.Event e)
- Specified by:
handleMouseWheelin interfaceIScrollBarProxy
-
addSelectionListener
public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
- Specified by:
addSelectionListenerin interfaceIScrollBarProxy
-
removeSelectionListener
public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
- Specified by:
removeSelectionListenerin interfaceIScrollBarProxy
-
addListener
public void addListener(int eventType, org.eclipse.swt.widgets.Listener listener)Description copied from interface:IScrollBarProxyAdds 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.- Specified by:
addListenerin interfaceIScrollBarProxy- Parameters:
eventType- the type of event to listen forlistener- the listener which should be notified when the event occurs- See Also:
IScrollBarProxy.addListener(int, org.eclipse.swt.widgets.Listener)
-
removeListener
public void removeListener(int eventType, org.eclipse.swt.widgets.Listener listener)Description copied from interface:IScrollBarProxyRemoves 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.- Specified by:
removeListenerin interfaceIScrollBarProxy- Parameters:
eventType- the type of event to listen forlistener- the listener which should no longer be notified- See Also:
IScrollBarProxy.removeListener(int, org.eclipse.swt.widgets.Listener)
-
-