Class ScrollBar.ScrollControl

  • All Implemented Interfaces:
    AVList, SelectListener, HotSpot, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
    Enclosing class:
    ScrollBar

    public class ScrollBar.ScrollControl
    extends TreeHotSpot
    Control for the scroll arrows and areas of the scroll bar above and below the knob.
    • Field Detail

      • adjustment

        protected java.lang.String adjustment
    • Constructor Detail

      • ScrollControl

        public ScrollControl​(HotSpot parent,
                             ScrollBar owner,
                             java.lang.String adjustment)
    • Method Detail

      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent event)
        Description copied from class: TreeHotSpot
        Forwards the event to the parent HotSpot if the parent is non-null. Otherwise does nothing. Override this method to handle mouse pressed events.
        Specified by:
        mousePressed in interface HotSpot
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class TreeHotSpot
        Parameters:
        event - The event to handle.
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent event)
        Description copied from class: TreeHotSpot
        Forwards the event to the parent HotSpot if the parent is non-null. Otherwise does nothing. Override this method to handle mouse released events.
        Specified by:
        mouseReleased in interface HotSpot
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
        Overrides:
        mouseReleased in class TreeHotSpot
        Parameters:
        event - The event to handle.
      • selected

        public void selected​(SelectEvent event)
        Description copied from class: TreeHotSpot
        Forwards the event to the parent HotSpot if the parent is non-null. Otherwise does nothing. Override this method to handle key released events.
        Specified by:
        selected in interface HotSpot
        Specified by:
        selected in interface SelectListener
        Overrides:
        selected in class TreeHotSpot
        Parameters:
        event - The event to handle.
      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent event)
        Description copied from class: TreeHotSpot
        Forwards the event to the parent HotSpot if the parent is non-null. Otherwise does nothing. Override this method to handle mouse click events.
        Specified by:
        mouseClicked in interface HotSpot
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
        Overrides:
        mouseClicked in class TreeHotSpot
        Parameters:
        event - The event to handle.
      • setActive

        public void setActive​(boolean active)
        Called when this HotSpot is activated or deactivated. The HotSpot only receives input events when it is active.

        Overridden to stop autoscroll operations when the scrollbar becomes inactive.

        Specified by:
        setActive in interface HotSpot
        Overrides:
        setActive in class AbstractHotSpot
        Parameters:
        active - true if the scrollbar is being activated, false if the scrollbar is being deactivated.