public class BasicTableUI extends TableUI
| 修飾子と型 | クラス | 説明 |
|---|---|---|
class |
BasicTableUI.FocusHandler |
このクラスは、「protected」内部クラスとして扱うようにしてください。
|
class |
BasicTableUI.KeyHandler |
このクラスは、「protected」内部クラスとして扱うようにしてください。
|
class |
BasicTableUI.MouseInputHandler |
このクラスは、「protected」内部クラスとして扱うようにしてください。
|
| 修飾子と型 | フィールド | 説明 |
|---|---|---|
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) |
|
int |
getBaseline(JComponent c, int width, int height) |
ベースラインを返します。
|
Component.BaselineResizeBehavior |
getBaselineResizeBehavior(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時に、指定されたコンポーネントに対して行われた構成を取り消します。 |
contains, getAccessibleChild, getAccessibleChildrenCount, updateprotected JTable table
protected CellRendererPane rendererPane
protected KeyListener keyListener
protected FocusListener focusListener
protected MouseInputListener mouseInputListener
protected KeyListener createKeyListener()
protected FocusListener createFocusListener()
protected MouseInputListener createMouseInputListener()
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
ComponentUIComponentUIインスタンスが、指定されたコンポーネントのUI委譲としてインストールされているときに呼び出されます。 このメソッドは、次を含むLook & Feel用のコンポーネントを完全に構成するべきです。
LayoutManagerをインストールする。
PropertyChangeListenerを作成してコンポーネントにインストールする。
installUI、クラスComponentUIc - UI委譲がインストールされるコンポーネントComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()protected void installDefaults()
protected void installListeners()
protected void installKeyboardActions()
public void uninstallUI(JComponent c)
ComponentUIinstallUI時に、指定されたコンポーネントに対して行われた構成を取り消します。 このメソッドは、このUIComponentインスタンスが、指定されたコンポーネントのUI委譲として削除されているときに呼び出されます。 このメソッドは、installUIによって実行された構成を元に戻すべきです。この場合、JComponentインスタンスをクリーンな状態(余分なリスナーや、Look & Feel固有のプロパティ・オブジェクトが残らないように)にするよう十分注意してください。 手順には次のものが含まれるべきです。
uninstallUI、クラスComponentUIc - このUI委譲が削除されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
public int getBaseline(JComponent c, int width, int height)
getBaseline、クラスComponentUIc - ベースラインが要求されるJComponentwidth - ベースラインを取得する幅height - ベースラインを取得する高さNullPointerException - cがnullである場合IllegalArgumentException - 幅または高さが0より小さい場合JComponent.getBaseline(int, int)public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
getBaselineResizeBehavior、クラスComponentUIc - ベースラインのサイズ変更の動作を返すJComponentNullPointerException - cがnullである場合JComponent.getBaseline(int, int)public Dimension getMinimumSize(JComponent c)
getMinimumSize、クラスComponentUIc - 最小サイズが照会されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるDimensionオブジェクトまたはnullJComponent.getMinimumSize(), LayoutManager.minimumLayoutSize(java.awt.Container), ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getPreferredSize(JComponent c)
getPreferredSize、クラスComponentUIc - 推奨サイズが照会されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるJComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMaximumSize(JComponent c)
getMaximumSize、クラスComponentUIc - 最大サイズが照会されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるDimensionオブジェクトまたはnullJComponent.getMaximumSize(), LayoutManager2.maximumLayoutSize(java.awt.Container)public void paint(Graphics g, JComponent c)
tableインスタンスの表現をペイントします。paint、クラスComponentUIg - ペイント対象のGraphicsコンテキストc - ペイントされるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるComponentUI.update(java.awt.Graphics, javax.swing.JComponent) バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。