javax.swing
Class JScrollBar.ModelListener

java.lang.Object
  extended byjavax.swing.JScrollBar.ModelListener
All Implemented Interfaces:
ChangeListener, EventListener, Serializable
Enclosing class:
JScrollBar

private class JScrollBar.ModelListener
extends Object
implements ChangeListener, Serializable

This class listens to ChangeEvents on the model and forwards AdjustmentEvents for the sake of backwards compatibility. Unfortunately there's no way to determine the proper type of the AdjustmentEvent as all updates to the model's value are considered equivalent.


Constructor Summary
private JScrollBar.ModelListener()
           
 
Method Summary
 void stateChanged(ChangeEvent e)
          Invoked when the target of the listener has changed its state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JScrollBar.ModelListener

private JScrollBar.ModelListener()
Method Detail

stateChanged

public void stateChanged(ChangeEvent e)
Description copied from interface: ChangeListener
Invoked when the target of the listener has changed its state.

Specified by:
stateChanged in interface ChangeListener
Parameters:
e - a ChangeEvent object