JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf.basic
类 BasicTreeUI.ComponentHandler

java.lang.Object
  继承者 java.awt.event.ComponentAdapter
      继承者 javax.swing.plaf.basic.BasicTreeUI.ComponentHandler
所有已实现的接口:
ActionListener, ComponentListener, EventListener
正在封闭类:
BasicTreeUI

public class BasicTreeUI.ComponentHandler
extends ComponentAdapter
implements ActionListener

滚动时更新首选大小(如果需要)。


字段摘要
protected  JScrollBar scrollBar
          正在调整的 scrollBar。
protected  Timer timer
          在滚动窗格中调整滚动条时使用的 Timer。
 
构造方法摘要
BasicTreeUI.ComponentHandler()
           
 
方法摘要
 void actionPerformed(ActionEvent ae)
          因 Timer 而将此方法作为公共方法。
 void componentMoved(ComponentEvent e)
          组件位置更改时调用。
protected  JScrollPane getScrollPane()
          返回容纳 JTree 的 JScrollPane;如果一个也没有找到,则返回 null。
protected  void startTimer()
          在必要时,创建并启动 Timer 来检查是否需要调整边界的大小。
 
从类 java.awt.event.ComponentAdapter 继承的方法
componentHidden, componentResized, componentShown
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

timer

protected Timer timer
在滚动窗格中调整滚动条时使用的 Timer。


scrollBar

protected JScrollBar scrollBar
正在调整的 scrollBar。

构造方法详细信息

BasicTreeUI.ComponentHandler

public BasicTreeUI.ComponentHandler()
方法详细信息

componentMoved

public void componentMoved(ComponentEvent e)
从类 ComponentAdapter 复制的描述
组件位置更改时调用。

指定者:
接口 ComponentListener 中的 componentMoved
覆盖:
ComponentAdapter 中的 componentMoved

startTimer

protected void startTimer()
在必要时,创建并启动 Timer 来检查是否需要调整边界的大小。


getScrollPane

protected JScrollPane getScrollPane()
返回容纳 JTree 的 JScrollPane;如果一个也没有找到,则返回 null。


actionPerformed

public void actionPerformed(ActionEvent ae)
因 Timer 而将此方法作为公共方法。如果 scrollBar 为 null 或者没有调整,则其停止计时器并更新大小。

指定者:
接口 ActionListener 中的 actionPerformed

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only