javax.swing

Class JScrollPane.AccessibleJScrollPane

protected class JScrollPane.AccessibleJScrollPane extends AccessibleJComponent implements ChangeListener, PropertyChangeListener

Provides accessibility support for the JScrollPane.
Field Summary
protected JViewportviewPort
The viewport of the underlying scrollpane.
Constructor Summary
AccessibleJScrollPane()
Creates a new AccessibleJScrollPane object.
Method Summary
voidpropertyChange(PropertyChangeEvent e)
Receives notification if any of the viewport's bound properties changes.
voidresetViewPort()
Resets the viewPort field when the scrollpane's viewport changes.
voidstateChanged(ChangeEvent event)
Receives notification when the state of the viewport changes.

Field Detail

viewPort

protected JViewport viewPort
The viewport of the underlying scrollpane.

Constructor Detail

AccessibleJScrollPane

public AccessibleJScrollPane()
Creates a new AccessibleJScrollPane object. This initializes the viewport field with the current viewport from the scrollpane associated with this AccessibleJScrollPane.

Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent e)
Receives notification if any of the viewport's bound properties changes.

Parameters: e the propery change event

resetViewPort

public void resetViewPort()
Resets the viewPort field when the scrollpane's viewport changes. This method is called by {@link JScrollPane#setViewport(JViewport)} in order to update the viewPort field and set up the listeners on this viewport correctly.

stateChanged

public void stateChanged(ChangeEvent event)
Receives notification when the state of the viewport changes.

Parameters: event the change event