javax.swing
Class JViewport.ViewListener

java.lang.Object
  extended by java.awt.event.ComponentAdapter
      extended by javax.swing.JViewport.ViewListener
All Implemented Interfaces:
ComponentListener, Serializable, EventListener
Enclosing class:
JViewport

protected class JViewport.ViewListener
extends ComponentAdapter
implements Serializable

A ComponentListener that listens for changes of the view's size. This triggers a revalidate() call on the viewport.

See Also:
Serialized Form

Constructor Summary
protected JViewport.ViewListener()
          Creates a new instance of ViewListener.
 
Method Summary
 void componentResized(ComponentEvent ev)
          Receives notification when a component (in this case: the view component) changes it's size.
 
Methods inherited from class java.awt.event.ComponentAdapter
componentHidden, componentMoved, componentShown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JViewport.ViewListener

protected JViewport.ViewListener()
Creates a new instance of ViewListener.

Method Detail

componentResized

public void componentResized(ComponentEvent ev)
Receives notification when a component (in this case: the view component) changes it's size. This simply triggers a revalidate() on the viewport.

Specified by:
componentResized in interface ComponentListener
Overrides:
componentResized in class ComponentAdapter
Parameters:
ev - the ComponentEvent describing the change