Class TrackingAdjustmentListener

  • All Implemented Interfaces:
    java.awt.event.AdjustmentListener, java.util.EventListener

    public class TrackingAdjustmentListener
    extends java.lang.Object
    implements java.awt.event.AdjustmentListener
    An AdjustmentListener which ensures that an Adjustable (e.g. a Scrollbar) will "track" when the Adjustable expands. For example, when a vertical scroll bar is at its bottom anchor, the scrollbar will remain at the bottom. When the vertical scroll bar is at any other location, then no tracking will happen. An instance of this class should only listen to one Adjustable as it retains state information about the Adjustable it listens to.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int _lastMaximum  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void adjustmentValueChanged​(java.awt.event.AdjustmentEvent e)  
      • Methods inherited from class java.lang.Object

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

      • _lastMaximum

        protected int _lastMaximum
    • Constructor Detail

      • TrackingAdjustmentListener

        public TrackingAdjustmentListener()
    • Method Detail

      • adjustmentValueChanged

        public void adjustmentValueChanged​(java.awt.event.AdjustmentEvent e)
        Specified by:
        adjustmentValueChanged in interface java.awt.event.AdjustmentListener