public class

BasicTreeUI.ComponentHandler

extends ComponentAdapter
implements ActionListener
java.lang.Object
   ↳ java.awt.event.ComponentAdapter
     ↳ javax.swing.plaf.basic.BasicTreeUI.ComponentHandler

Class Overview

Updates the preferred size when scrolling (if necessary).

Summary

Fields
protected JScrollBar scrollBar ScrollBar that is being adjusted.
protected Timer timer Timer used when inside a scrollpane and the scrollbar is adjusting.
Public Constructors
BasicTreeUI.ComponentHandler()
Public Methods
void actionPerformed(ActionEvent ae)
Public as a result of Timer.
void componentMoved(ComponentEvent e)
Invoked when the component's position changes.
Protected Methods
JScrollPane getScrollPane()
Returns the JScrollPane housing the JTree, or null if one isn't found.
void startTimer()
Creates, if necessary, and starts a Timer to check if need to resize the bounds.
[Expand]
Inherited Methods
From class java.awt.event.ComponentAdapter
From class java.lang.Object
From interface java.awt.event.ActionListener
From interface java.awt.event.ComponentListener

Fields

protected JScrollBar scrollBar

ScrollBar that is being adjusted.

protected Timer timer

Timer used when inside a scrollpane and the scrollbar is adjusting.

Public Constructors

public BasicTreeUI.ComponentHandler ()

Public Methods

public void actionPerformed (ActionEvent ae)

Public as a result of Timer. If the scrollBar is null, or not adjusting, this stops the timer and updates the sizing.

public void componentMoved (ComponentEvent e)

Invoked when the component's position changes.

Protected Methods

protected JScrollPane getScrollPane ()

Returns the JScrollPane housing the JTree, or null if one isn't found.

protected void startTimer ()

Creates, if necessary, and starts a Timer to check if need to resize the bounds.