| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TableUI
javax.swing.plaf.basic.BasicTableUI
public class BasicTableUI
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)Look & Feel に適した、指定されたコンポーネントを構成します。 | 
|  void | paint(Graphics g,
      JComponent c)installUI() により設定された tableのインスタンス表現をペイントします。 | 
| protected  void | uninstallDefaults() | 
| protected  void | uninstallKeyboardActions() | 
| protected  void | uninstallListeners() | 
|  void | uninstallUI(JComponent c)installUI時に、指定されたコンポーネントで実行した構成を取り消します。 | 
| クラス javax.swing.plaf.ComponentUI から継承されたメソッド | 
|---|
| contains, getAccessibleChild, getAccessibleChildrenCount, update | 
| クラス java.lang.Object から継承されたメソッド | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| フィールドの詳細 | 
|---|
protected JTable table
protected CellRendererPane rendererPane
protected KeyListener keyListener
protected FocusListener focusListener
protected MouseInputListener mouseInputListener
| コンストラクタの詳細 | 
|---|
public BasicTableUI()
| メソッドの詳細 | 
|---|
protected KeyListener createKeyListener()
protected FocusListener createFocusListener()
protected MouseInputListener createMouseInputListener()
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
ComponentUI の記述: ComponentUI インスタンスが、指定されたコンポーネントの UI 委譲としてインストールされているときに呼び出されます。このメソッドは、以下を含む Look & Feel 用のコンポーネントを完全に構成する必要があります。LayoutManager をインストールするPropertyChangeListener をコンポーネントに作成またはインストールする
ComponentUI 内の installUIc - UI 委譲がインストールされているコンポーネントComponentUI.uninstallUI(javax.swing.JComponent), 
JComponent.setUI(javax.swing.plaf.ComponentUI), 
JComponent.updateUI()protected void installDefaults()
installUI(javax.swing.JComponent)protected void installListeners()
protected void installKeyboardActions()
public void uninstallUI(JComponent c)
ComponentUI の記述: installUI 時に、指定されたコンポーネントで実行した構成を取り消します。このメソッドは、指定されたコンポーネントの UI 委譲としての UIComponent インスタンスが削除されているときに呼び出されます。このメソッドは、installUI によって実行された構成を元に戻す必要があります。この場合、JComponent インスタンスをクリーンな状態 (余分なリスナーや、Look & Feel 固有のプロパティオブジェクトが残らないように) にするよう十分注意してください。手順には次のものがあります。
ComponentUI 内の uninstallUIc - この UI 委譲が削除されるコンポーネント。この引数はしばしば無視されるが、UI オブジェクトが状態なしで複数のコンポーネントに共有される場合に使用されることがあるComponentUI.installUI(javax.swing.JComponent), 
JComponent.updateUI()protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
public Dimension getMinimumSize(JComponent c)
ComponentUI 内の getMinimumSizec - 最小サイズが照会されるコンポーネント。この引数はしばしば無視されるが、UI オブジェクトが状態なしで複数のコンポーネントに共有される場合に使用されることがある
Dimension オブジェクト、または nullJComponent.getMinimumSize(), 
LayoutManager.minimumLayoutSize(java.awt.Container), 
ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getPreferredSize(JComponent c)
ComponentUI 内の getPreferredSizec - 適切なサイズが照会されるコンポーネント。この引数はしばしば無視されるが、UI オブジェクトが状態なしで複数のコンポーネントに共有される場合に使用されることがあるJComponent.getPreferredSize(), 
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMaximumSize(JComponent c)
ComponentUI 内の getMaximumSizec - 最大サイズが照会されるコンポーネント。この引数はしばしば無視されるが、UI オブジェクトが状態なしで複数のコンポーネントに共有される場合に使用されることがある
Dimension オブジェクト、または nullJComponent.getMaximumSize(), 
LayoutManager2.maximumLayoutSize(java.awt.Container)
public void paint(Graphics g,
                  JComponent c)
table のインスタンス表現をペイントします。
ComponentUI 内の paintg - ペイント対象の Graphics コンテキストc - ペイントされるコンポーネント。この引数はしばしば無視されるが、UI オブジェクトが状態なしで複数のコンポーネントに共有される場合に使用されることがあるComponentUI.update(java.awt.Graphics, javax.swing.JComponent)| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。