Class NullScrollBarProxy

  • All Implemented Interfaces:
    IScrollBarProxy

    public class NullScrollBarProxy
    extends java.lang.Object
    implements IScrollBarProxy
    A null-op scrollbar proxy. Used when the grid is not showing scrollbars.
    Since:
    2.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullScrollBarProxy

        public NullScrollBarProxy()
    • Method Detail

      • getVisible

        public boolean getVisible()
        Returns the scrollbar's visibility.
        Specified by:
        getVisible in interface IScrollBarProxy
        Returns:
        true if the scrollbar is visible.
      • setVisible

        public void setVisible​(boolean visible)
        Sets the scrollbar's visibility.
        Specified by:
        setVisible in interface IScrollBarProxy
        Parameters:
        visible - visibilty
      • getSelection

        public int getSelection()
        Returns the selection.
        Specified by:
        getSelection in interface IScrollBarProxy
        Returns:
        the selection.
      • setSelection

        public void setSelection​(int selection)
        Sets the selection.
        Specified by:
        setSelection in interface IScrollBarProxy
        Parameters:
        selection - selection to set
      • setValues

        public 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.
        Specified by:
        setValues in interface IScrollBarProxy
        Parameters:
        selection - selection
        min - minimum
        max - maximum
        thumb - thumb
        increment - increment
        pageIncrement - page increment
      • addSelectionListener

        public void addSelectionListener​(org.eclipse.swt.events.SelectionListener listener)
        Specified by:
        addSelectionListener in interface IScrollBarProxy
      • addListener

        public void addListener​(int eventType,
                                org.eclipse.swt.widgets.Listener listener)
        Description copied from interface: IScrollBarProxy
        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 the handleEvent() message. The event type is one of the event constants defined in class SWT.
        Specified by:
        addListener in interface IScrollBarProxy
        Parameters:
        eventType - the type of event to listen for
        listener - 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: IScrollBarProxy
        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 class SWT.
        Specified by:
        removeListener in interface IScrollBarProxy
        Parameters:
        eventType - the type of event to listen for
        listener - the listener which should no longer be notified
        See Also:
        IScrollBarProxy.removeListener(int, org.eclipse.swt.widgets.Listener)