public class BasicInternalFrameUI extends InternalFrameUI
| 修飾子と型 | クラスと説明 |
|---|---|
protected class |
BasicInternalFrameUI.BasicInternalFrameListener |
protected class |
BasicInternalFrameUI.BorderListener
ボーダー調整を待機します。
|
protected class |
BasicInternalFrameUI.ComponentHandler |
protected class |
BasicInternalFrameUI.GlassPaneDispatcher |
class |
BasicInternalFrameUI.InternalFrameLayout |
class |
BasicInternalFrameUI.InternalFramePropertyChangeListener |
| 修飾子と型 | フィールドと説明 |
|---|---|
protected MouseInputAdapter |
borderListener |
protected ComponentListener |
componentListener |
protected JComponent |
eastPane |
protected JInternalFrame |
frame |
protected MouseInputListener |
glassPaneDispatcher |
protected LayoutManager |
internalFrameLayout |
protected JComponent |
northPane |
protected KeyStroke |
openMenuKey
非推奨。
Java 2 プラットフォーム 1.3 以降使われていません。
|
protected PropertyChangeListener |
propertyChangeListener |
protected JComponent |
southPane |
protected BasicInternalFrameTitlePane |
titlePane |
protected JComponent |
westPane |
| コンストラクタと説明 |
|---|
BasicInternalFrameUI(JInternalFrame b) |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, updateprotected JInternalFrame frame
protected MouseInputAdapter borderListener
protected PropertyChangeListener propertyChangeListener
protected LayoutManager internalFrameLayout
protected ComponentListener componentListener
protected MouseInputListener glassPaneDispatcher
protected JComponent northPane
protected JComponent southPane
protected JComponent westPane
protected JComponent eastPane
protected BasicInternalFrameTitlePane titlePane
@Deprecated protected KeyStroke openMenuKey
public BasicInternalFrameUI(JInternalFrame b)
public static ComponentUI createUI(JComponent b)
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()
protected void installKeyboardActions()
protected void installComponents()
protected void installListeners()
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected LayoutManager createLayoutManager()
protected PropertyChangeListener createPropertyChangeListener()
public Dimension getPreferredSize(JComponent x)
ComponentUInull が返された場合、適切なサイズは代わりにコンポーネントのレイアウトマネージャーによって計算されます (これは、特定のレイアウトマネージャーをインストールしてあるコンポーネントの場合に推奨する方法です)。このメソッドのデフォルト実装は null を返します。getPreferredSize、クラス: ComponentUIx - 推奨サイズが照会されるコンポーネント。この引数は通常無視されるが、UI オブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるJComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMinimumSize(JComponent x)
ComponentUInull が返された場合、最小サイズは代わりにコンポーネントのレイアウトマネージャーによって計算されます (これは、特定のレイアウトマネージャーをインストールしてあるコンポーネントの場合に推奨する方法です)。このメソッドのデフォルト実装は getPreferredSize を呼び出して、その値を返します。getMinimumSize、クラス: ComponentUIx - 最小サイズが照会されるコンポーネント。この引数は通常無視されるが、UI オブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるDimension オブジェクトまたは nullJComponent.getMinimumSize(), LayoutManager.minimumLayoutSize(java.awt.Container), ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getMaximumSize(JComponent x)
ComponentUInull が返された場合、最大サイズは代わりにコンポーネントのレイアウトマネージャーによって計算されます (これは、特定のレイアウトマネージャーをインストールしてあるコンポーネントの場合に推奨する方法です)。このメソッドのデフォルト実装は getPreferredSize を呼び出して、その値を返します。getMaximumSize、クラス: ComponentUIx - 最大サイズが照会されるコンポーネント。この引数は通常無視されるが、UI オブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるDimension オブジェクトまたは nullJComponent.getMaximumSize(), LayoutManager2.maximumLayoutSize(java.awt.Container)protected void replacePane(JComponent currentPane, JComponent newPane)
newPane にインストールし、フレームに追加します。currentPane の逆の処理です。protected void deinstallMouseHandlers(JComponent c)
protected void installMouseHandlers(JComponent c)
protected JComponent createNorthPane(JInternalFrame w)
protected JComponent createSouthPane(JInternalFrame w)
protected JComponent createWestPane(JInternalFrame w)
protected JComponent createEastPane(JInternalFrame w)
protected MouseInputAdapter createBorderListener(JInternalFrame w)
protected void createInternalFrameListener()
protected final boolean isKeyBindingRegistered()
protected final void setKeyBindingRegistered(boolean b)
public final boolean isKeyBindingActive()
protected final void setKeyBindingActive(boolean b)
protected void setupMenuOpenKey()
protected void setupMenuCloseKey()
public JComponent getNorthPane()
public void setNorthPane(JComponent c)
public JComponent getSouthPane()
public void setSouthPane(JComponent c)
public JComponent getWestPane()
public void setWestPane(JComponent c)
public JComponent getEastPane()
public void setEastPane(JComponent c)
protected DesktopManager getDesktopManager()
protected DesktopManager createDesktopManager()
protected void closeFrame(JInternalFrame f)
playCloseSound アクションがトリガーされます。このアクションは desktopManager に委譲されます。protected void maximizeFrame(JInternalFrame f)
playMaximizeSound アクションがトリガーされます。このアクションは desktopManager に委譲されます。protected void minimizeFrame(JInternalFrame f)
playRestoreDownSound アクションがトリガーされます。このアクションは desktopManager に委譲されます。protected void iconifyFrame(JInternalFrame f)
playMinimizeSound アクションがトリガーされます。このアクションは desktopManager に委譲されます。protected void deiconifyFrame(JInternalFrame f)
playRestoreUpSound アクションがトリガーされます。このアクションは desktopManager に委譲されます。protected void activateFrame(JInternalFrame f)
protected void deactivateFrame(JInternalFrame f)
protected ComponentListener createComponentListener()
protected MouseInputListener createGlassPaneDispatcher()
バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.