Java プラットフォーム 1.2

javax.swing.plaf.basic
クラス BasicTreeUI.ComponentHandler

java.lang.Object
  |
  +--java.awt.event.ComponentAdapter
        |
        +--javax.swing.plaf.basic.BasicTreeUI.ComponentHandler

public class BasicTreeUI.ComponentHandler
extends ComponentAdapter
implements ActionListener

スクロール時に必要に応じて、適切なサイズを更新します。


フィールドの概要
protected  JScrollBar scrollBar
          調整中のスクロールバーです。
protected  Timer timer
          スクロール区画内で、スクロールバーの調整中に使われるタイマーです。
 
コンストラクタの概要
BasicTreeUI.ComponentHandler()
           
 
メソッドの概要
 void actionPerformed(ActionEvent ae)
          Timer の結果を公開します。
 void componentMoved(ComponentEvent e)
           
protected  JScrollPane getScrollPane()
          JTree が格納されている JScrollPane を返します。
protected  void startTimer()
          境界のサイズを変更する必要があるかどうかを調べるために、必要に応じてタイマーを作成および開始します。
 
クラス 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
スクロール区画内で、スクロールバーの調整中に使われるタイマーです。

scrollBar

protected JScrollBar scrollBar
調整中のスクロールバーです。
コンストラクタの詳細

BasicTreeUI.ComponentHandler

public BasicTreeUI.ComponentHandler()
メソッドの詳細

componentMoved

public void componentMoved(ComponentEvent e)
オーバーライド:
クラス ComponentAdapter 内の componentMoved

startTimer

protected void startTimer()
境界のサイズを変更する必要があるかどうかを調べるために、必要に応じてタイマーを作成および開始します。

getScrollPane

protected JScrollPane getScrollPane()
JTree が格納されている JScrollPane を返します。見つからない場合は null を返します。

actionPerformed

public void actionPerformed(ActionEvent ae)
Timer の結果を公開します。scrollBar が null の場合、または調整中でない場合は、タイマーを停止し、サイズ変更を更新します。
定義:
インタフェース ActionListener 内の actionPerformed

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.