public class BasicTreeUI.ComponentHandler extends ComponentAdapter implements ActionListener
Modifier and Type | Field and Description |
---|---|
protected JScrollBar |
scrollBar
滚动条,正在调整。
|
protected Timer |
timer
利用定时器在滚动窗格和滚动条调整。
|
Constructor and Description |
---|
ComponentHandler() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ae)
作为定时器的结果。
|
void |
componentMoved(ComponentEvent e)
当组件的位置更改时调用。
|
protected JScrollPane |
getScrollPane()
返回JScrollPane的住房JTree,或空如果没有发现。
|
protected void |
startTimer()
创建时,如果必要的话,并启动一个计时器,以检查是否需要调整边界的大小。
|
componentHidden, componentResized, componentShown
protected Timer timer
protected JScrollBar scrollBar
public void componentMoved(ComponentEvent e)
ComponentAdapter
componentMoved
接口
ComponentListener
componentMoved
方法重写,继承类
ComponentAdapter
protected void startTimer()
protected JScrollPane getScrollPane()
public void actionPerformed(ActionEvent ae)
actionPerformed
接口
ActionListener
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.