Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
public class: BasicTreeUI.ComponentHandler [javadoc | source]
java.lang.Object
   java.awt.event.ComponentAdapter
      javax.swing.plaf.basic.BasicTreeUI$ComponentHandler

All Implemented Interfaces:
    ActionListener, ComponentListener

Updates the preferred size when scrolling (if necessary).
Field Summary
protected  Timer timer    Timer used when inside a scrollpane and the scrollbar is adjusting. 
protected  JScrollBar scrollBar    ScrollBar that is being adjusted. 
Method from javax.swing.plaf.basic.BasicTreeUI$ComponentHandler Summary:
actionPerformed,   componentMoved,   getScrollPane,   startTimer
Methods from java.awt.event.ComponentAdapter:
componentHidden,   componentMoved,   componentResized,   componentShown
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicTreeUI$ComponentHandler Detail:
 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) 
 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.