JavaTM Platform
Standard Ed. 6

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

java.lang.Object
  上位を拡張 java.awt.event.ComponentAdapter
      上位を拡張 javax.swing.plaf.basic.BasicTreeUI.ComponentHandler
すべての実装されたインタフェース:
ActionListener, ComponentListener, EventListener
含まれているクラス:
BasicTreeUI

public class BasicTreeUI.ComponentHandler
extends ComponentAdapter
implements ActionListener

必要であれば、スクロール時に適切なサイズを更新します。


フィールドの概要
protected  JScrollBar scrollBar
          調節されている ScrollBar です。
protected  Timer timer
          スクロール区画内でスクロールバーを調節しているときに使用されるタイマーです。
 
コンストラクタの概要
BasicTreeUI.ComponentHandler()
           
 
メソッドの概要
 void actionPerformed(ActionEvent ae)
          Timer の結果としての public です。
 void componentMoved(ComponentEvent e)
          コンポーネントの位置が変わると呼び出されます。
protected  JScrollPane getScrollPane()
          JTree を持つ JScrollPane、またはこれが見つからない場合には null を返します。
protected  void startTimer()
          境界のサイズを変更する必要があるかどうかをチェックするため、必要であれば Timer を作成してから起動します。
 
クラス 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
調節されている ScrollBar です。

コンストラクタの詳細

BasicTreeUI.ComponentHandler

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

componentMoved

public void componentMoved(ComponentEvent e)
クラス ComponentAdapter の記述:
コンポーネントの位置が変わると呼び出されます。

定義:
インタフェース ComponentListener 内の componentMoved
オーバーライド:
クラス ComponentAdapter 内の componentMoved

startTimer

protected void startTimer()
境界のサイズを変更する必要があるかどうかをチェックするため、必要であれば Timer を作成してから起動します。


getScrollPane

protected JScrollPane getScrollPane()
JTree を持つ JScrollPane、またはこれが見つからない場合には null を返します。


actionPerformed

public void actionPerformed(ActionEvent ae)
Timer の結果としての public です。scrollBar が null であるか、調節されていない場合、タイマーを止め、サイズ変更を更新します。

定義:
インタフェース ActionListener 内の actionPerformed

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。