java.lang.Object
java.awt.event.ComponentAdapter
javax.swing.plaf.basic.BasicTreeUI.ComponentHandler
- 所有已实现的接口:
ActionListener,ComponentListener,EventListener
- 封闭类:
BasicTreeUI
滚动时更新首选大小(如有必要)。
-
字段摘要
字段 -
构造方法总结
构造方法 -
方法总结
修饰符和类型方法描述void由于定时器而公开。protected JScrollPane返回包含JTree的JScrollPane,如果未找到则返回 null。protected void如有必要,创建并启动 Timer 以检查是否需要调整边界大小。在类 java.awt.event.ComponentAdapter 中声明的方法
componentHidden, componentMoved, componentResized, componentShown
-
字段详细信息
-
timer
在滚动窗格内且滚动条正在调整时使用的计时器。 -
scrollBar
正在调整的 ScrollBar。
-
-
构造方法详细信息
-
ComponentHandler
public ComponentHandler()构造一个ComponentHandler
-
-
方法详情
-
startTimer
protected void startTimer()如有必要,创建并启动 Timer 以检查是否需要调整边界大小。 -
getScrollPane
返回包含JTree的JScrollPane,如果未找到则返回 null。- 返回:
JScrollPane容纳JTree
-
actionPerformed
由于定时器而公开。如果 scrollBar 为 null 或未调整,这将停止计时器并更新大小。- 指定者:
actionPerformed在接口ActionListener中- 参数:
ae- 要处理的事件
-