public class BasicTreeUI.ComponentHandler extends ComponentAdapter implements ActionListener
Modifier and Type | Field and Description |
---|---|
protected JScrollBar |
scrollBar
正在调整的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()
返回容纳JTree的JScrollPane,如果没有找到,返回null。
|
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
in interface
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.