Class ScrollBarScroller

java.lang.Object
org.eclipse.nebula.widgets.nattable.viewport.ScrollBarScroller
All Implemented Interfaces:
IScroller<org.eclipse.swt.widgets.ScrollBar>

public class ScrollBarScroller extends Object implements IScroller<org.eclipse.swt.widgets.ScrollBar>
IScroller implementation that wraps an SWT ScrollBar.
  • Constructor Details

    • ScrollBarScroller

      public ScrollBarScroller(org.eclipse.swt.widgets.ScrollBar scrollBar)
      Create a new ScrollBarScroller that wraps the given ScrollBar.
      Parameters:
      scrollBar - The ScrollBar to wrap. Can not be null.
      Throws:
      IllegalArgumentException - if the given ScrollBar is null.
  • Method Details

    • getUnderlying

      public org.eclipse.swt.widgets.ScrollBar getUnderlying()
      Specified by:
      getUnderlying in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • isDisposed

      public boolean isDisposed()
      Specified by:
      isDisposed in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • addListener

      public void addListener(int eventType, org.eclipse.swt.widgets.Listener listener)
      Specified by:
      addListener in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • removeListener

      public void removeListener(int eventType, org.eclipse.swt.widgets.Listener listener)
      Specified by:
      removeListener in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • getSelection

      public int getSelection()
      Specified by:
      getSelection in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • setSelection

      public void setSelection(int value)
      Specified by:
      setSelection in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • getMaximum

      public int getMaximum()
      Specified by:
      getMaximum in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • setMaximum

      public void setMaximum(int value)
      Specified by:
      setMaximum in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • getPageIncrement

      public int getPageIncrement()
      Specified by:
      getPageIncrement in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • setPageIncrement

      public void setPageIncrement(int value)
      Specified by:
      setPageIncrement in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • getThumb

      public int getThumb()
      Specified by:
      getThumb in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • setThumb

      public void setThumb(int value)
      Specified by:
      setThumb in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • getIncrement

      public int getIncrement()
      Specified by:
      getIncrement in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • setIncrement

      public void setIncrement(int value)
      Specified by:
      setIncrement in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • getEnabled

      public boolean getEnabled()
      Specified by:
      getEnabled in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • setEnabled

      public void setEnabled(boolean b)
      Specified by:
      setEnabled in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • getVisible

      public boolean getVisible()
      Specified by:
      getVisible in interface IScroller<org.eclipse.swt.widgets.ScrollBar>
    • setVisible

      public void setVisible(boolean b)
      Specified by:
      setVisible in interface IScroller<org.eclipse.swt.widgets.ScrollBar>