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