Module java.desktop

Class BasicScrollBarUI.ScrollListener

    • Constructor Detail

      • ScrollListener

        public ScrollListener()
        Constructs a ScrollListener.
      • ScrollListener

        public ScrollListener​(int dir,
                              boolean block)
        Constructs a ScrollListener.
        Parameters:
        dir - direction
        block - use block increment
    • Method Detail

      • setDirection

        public void setDirection​(int direction)
        Sets the direction.
        Parameters:
        direction - the new direction
      • setScrollByBlock

        public void setScrollByBlock​(boolean block)
        Sets the scrolling by block
        Parameters:
        block - whether or not to scroll by block