JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.plaf.basic
クラス BasicTableUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.TableUI
              |
              +--javax.swing.plaf.basic.BasicTableUI

public class BasicTableUI
extends TableUI

BasicTableUI の実装です。


内部クラスの概要
 class BasicTableUI.FocusHandler
          この内部クラスは public とマークされますが、これはコンパイラのバグが原因です。
 class BasicTableUI.KeyHandler
          この内部クラスは public とマークされますが、これはコンパイラのバグが原因です。
 class BasicTableUI.MouseInputHandler
          この内部クラスは public とマークされますが、これはコンパイラのバグが原因です。
 
フィールドの概要
protected  FocusListener focusListener
           
protected  KeyListener keyListener
           
protected  MouseInputListener mouseInputListener
           
protected  CellRendererPane rendererPane
           
protected  JTable table
           
 
コンストラクタの概要
BasicTableUI()
           
 
メソッドの概要
protected  FocusListener createFocusListener()
          JTable でキーボードナビゲーションを処理するためのフォーカスリスナーを作成します。
protected  KeyListener createKeyListener()
          JTable でキーボードナビゲーションを処理するためのキーリスナーを作成します。
protected  MouseInputListener createMouseInputListener()
          JTable のマウスリスナーを作成します。
static ComponentUI createUI(JComponent c)
           
 Dimension getMaximumSize(JComponent c)
          テーブルの最大サイズを返します。
 Dimension getMinimumSize(JComponent c)
          テーブルの最小サイズを返します。
 Dimension getPreferredSize(JComponent c)
          テーブルの適切なサイズを返します。
protected  void installDefaults()
          フォント、フォアグラウンド、バックグラウンドなどの JTable プロパティを初期化します。
protected  void installKeyboardActions()
          JTable ですべてのキーボードアクションを登録します。
protected  void installListeners()
          JTable にリスナーを接続します。
 void installUI(JComponent c)
           
 void paint(Graphics g, JComponent c)
          installUI() により設定された table のインスタンス表現をペイントします。
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(JComponent c)
           
 
クラス javax.swing.plaf.ComponentUI から継承したメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

table

protected JTable table

rendererPane

protected CellRendererPane rendererPane

keyListener

protected KeyListener keyListener

focusListener

protected FocusListener focusListener

mouseInputListener

protected MouseInputListener mouseInputListener
コンストラクタの詳細

BasicTableUI

public BasicTableUI()
メソッドの詳細

createKeyListener

protected KeyListener createKeyListener()
JTable でキーボードナビゲーションを処理するためのキーリスナーを作成します。

createFocusListener

protected FocusListener createFocusListener()
JTable でキーボードナビゲーションを処理するためのフォーカスリスナーを作成します。

createMouseInputListener

protected MouseInputListener createMouseInputListener()
JTable のマウスリスナーを作成します。

createUI

public static ComponentUI createUI(JComponent c)

installUI

public void installUI(JComponent c)
オーバーライド:
クラス ComponentUI 内の installUI

installDefaults

protected void installDefaults()
フォント、フォアグラウンド、バックグラウンドなどの JTable プロパティを初期化します。フォント、フォアグラウンド、バックグラウンドプロパティは、現在の値が null または UIResource の場合にだけ設定され、ほかのプロパティは現在の値が null の場合に設定されます。
関連項目:
installUI(javax.swing.JComponent)

installListeners

protected void installListeners()
JTable にリスナーを接続します。

installKeyboardActions

protected void installKeyboardActions()
JTable ですべてのキーボードアクションを登録します。

uninstallUI

public void uninstallUI(JComponent c)
オーバーライド:
クラス ComponentUI 内の uninstallUI

uninstallDefaults

protected void uninstallDefaults()

uninstallListeners

protected void uninstallListeners()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

getMinimumSize

public Dimension getMinimumSize(JComponent c)
テーブルの最小サイズを返します。最小の高さは、行の高さに行数を掛けた値です。最小幅は、各列の最小幅の合計です。
オーバーライド:
クラス ComponentUI 内の getMinimumSize

getPreferredSize

public Dimension getPreferredSize(JComponent c)
テーブルの適切なサイズを返します。適切な高さは、行の高さに行数を掛けた値です。適切な幅は、各列の適切な幅の合計です。
オーバーライド:
クラス ComponentUI 内の getPreferredSize

getMaximumSize

public Dimension getMaximumSize(JComponent c)
テーブルの最大サイズを返します。最大の高さは、行の高さに行数を掛けた値です。最大幅は、各列の最大幅の合計です。
オーバーライド:
クラス ComponentUI 内の getMaximumSize

paint

public void paint(Graphics g,
                  JComponent c)
installUI() により設定された table のインスタンス表現をペイントします。
オーバーライド:
クラス ComponentUI 内の paint

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.