public class BasicViewportUI extends ViewportUI
| コンストラクタと説明 |
|---|
BasicViewportUI() |
| 修飾子と型 | メソッドと説明 |
|---|---|
static ComponentUI |
createUI(JComponent c) |
protected void |
installDefaults(JComponent c) |
void |
installUI(JComponent c)
指定されたコンポーネントを Look & Feel に応じて適切に構成します。
|
protected void |
uninstallDefaults(JComponent c) |
void |
uninstallUI(JComponent c)
installUI 時に、指定されたコンポーネントに対して行われた構成を取り消します。 |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, updatepublic 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()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 installDefaults(JComponent c)
protected void uninstallDefaults(JComponent c)
バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.