javax.swing.plaf.basic
Class BasicScrollPaneUI.ViewportChangeHandler

java.lang.Object
  extended by javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler
All Implemented Interfaces:
EventListener, ChangeListener
Enclosing class:
BasicScrollPaneUI

public class BasicScrollPaneUI.ViewportChangeHandler
extends Object
implements ChangeListener

Listens for changes of the viewport's extent size and updates the scrollpane accordingly.


Constructor Summary
BasicScrollPaneUI.ViewportChangeHandler()
           
 
Method Summary
 void stateChanged(ChangeEvent event)
          Receives notification when the view's size, position or extent size changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicScrollPaneUI.ViewportChangeHandler

public BasicScrollPaneUI.ViewportChangeHandler()
Method Detail

stateChanged

public void stateChanged(ChangeEvent event)
Receives notification when the view's size, position or extent size changes. When the extents size has changed, this method calls BasicScrollPaneUI.syncScrollPaneWithViewport() to adjust the scrollbars extents as well.

Specified by:
stateChanged in interface ChangeListener
Parameters:
event - the change event