クラスBasicInternalFrameUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.InternalFrameUI
javax.swing.plaf.basic.BasicInternalFrameUI
- 直系の既知のサブクラス:
MetalInternalFrameUI,SynthInternalFrameUI
public class BasicInternalFrameUI extends InternalFrameUI
JInternalFrameの基本L&F実装です。
-
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明protected class基本的な内部フレーム・リスナー。protected classボーダーの調整を待機します。protected classコンポーネント・ハンドラ。protected classガラス・ペイン・ディスパッチャ。class内部フレームのレイアウト。class内部フレーム・プロパティの変更リスナー。 -
フィールドのサマリー
フィールド修飾子と型フィールド説明protected MouseInputAdapterボーダー・リスナーprotected ComponentListenerコンポーネント・リスナーprotected JComponent東ペインprotected JInternalFrameframeprotected MouseInputListenerガラス・ペイン・ディスパッチャprotected LayoutManager内部フレーム・レイアウトprotected JComponent北ペインprotected KeyStroke非推奨。Java 2プラットフォームv1.3以降。protected PropertyChangeListenerプロパティ変更リスナーprotected JComponent南ペインprotected BasicInternalFrameTitlePaneタイトル・ペインprotected JComponent西ペイン -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明protected voidフレームが選択状態になるときに呼び出されます。protected voidユーザーがフレームを閉じるときに呼び出されます。protected MouseInputAdapterボーダー・リスナーを作成します。protected ComponentListenerコンポーネント・リスナーを作成します。protected DesktopManagerデスクトップ・マネージャを作成します。protected JComponent東ペインを作成します。protected MouseInputListenerGlassPaneDispatcherを作成します。protected void内部フレーム・リスナーを作成します。protected LayoutManagerレイアウト・マネージャを作成します。protected JComponent北ペインを作成します。protected PropertyChangeListenerプロパティ変更リスナーを作成します。protected JComponent北ペインを作成します。static ComponentUIコンポーネントUIを返します。protected JComponent西ペインを作成します。protected voidフレームの選択が解除されるときに呼び出されます。protected voidユーザーがフレームのアイコン化を解除するときに呼び出されます。protected voidマウス・ハンドラをアンインストールします。protected DesktopManager適切なDesktopManagerを返します。東ペインを返します。最大サイズを返します。最小サイズを返します。北ペインを返します。優先サイズを返します。南ペインを返します。西ペインを返します。protected voidユーザーがフレームをアイコン化するときに呼び出されます。protected voidコンポーネントを取り付けます。protected voidデフォルトをインストールします。protected voidキーボード操作をインストールします。protected voidリスナーをインストールします。protected voidマウス・ハンドラをインストールします。voidUIをインストールします。final booleanキー・バインディングがアクティブかどうかを返します。protected final booleanキー・バインディングが登録されているかどうかを返します。protected voidユーザーがフレームを最大化するときに呼び出されます。protected voidユーザーがフレームを最小化するときに呼び出されます。protected voidreplacePane(JComponent currentPane, JComponent newPane) 必要なマウス・ハンドラをnewPaneにインストールし、フレームに追加します。void東のペインを設定します。protected final voidsetKeyBindingActive(boolean b) キー・バインディング・アクティビティを設定します。protected final voidsetKeyBindingRegistered(boolean b) キー・バインディング登録を設定します。void北ペインを設定します。void南ペインを設定します。protected voidメニュー・クローズ・キーを設定します。protected voidメニュー・オープン・キーを設定します。void西ペインを設定します。protected voidコンポーネントをアンインストールします。protected voidデフォルトをアンインストールします。protected voidキーボード操作をアンインストールします。protected voidリスナーをアンインストールします。voidUIをアンインストールします。クラスjavax.swing.plaf.ComponentUIで宣言されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
フィールド詳細
-
frame
protected JInternalFrame frameframe -
borderListener
protected MouseInputAdapter borderListenerボーダー・リスナー -
propertyChangeListener
protected PropertyChangeListener propertyChangeListenerプロパティ変更リスナー -
internalFrameLayout
protected LayoutManager internalFrameLayout内部フレーム・レイアウト -
componentListener
protected ComponentListener componentListenerコンポーネント・リスナー -
glassPaneDispatcher
protected MouseInputListener glassPaneDispatcherガラス・ペイン・ディスパッチャ -
northPane
protected JComponent northPane北ペイン -
southPane
protected JComponent southPane南ペイン -
westPane
protected JComponent westPane西ペイン -
eastPane
protected JComponent eastPane東ペイン -
titlePane
protected BasicInternalFrameTitlePane titlePaneタイトル・ペイン -
openMenuKey
@Deprecated protected KeyStroke openMenuKey非推奨。Java 2プラットフォームv1.3以降。以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.3以降では使用されません。 キー・バインディングはLookAndFeelによって定義されるようになりました。詳細はキー・バインディングの仕様を参照してください。
-
-
コンストラクタの詳細
-
BasicInternalFrameUI
-
-
メソッドの詳細
-
createUI
-
installUI
public void installUI(JComponent c) UIをインストールします。- オーバーライド:
installUI、クラスComponentUI- パラメータ:
c- コンポーネント- 関連項目:
-
uninstallUI
public void uninstallUI(JComponent c) UIをアンインストールします。- オーバーライド:
uninstallUI、クラスComponentUI- パラメータ:
c- コンポーネント- 関連項目:
-
installDefaults
protected void installDefaults()デフォルトをインストールします。 -
installKeyboardActions
protected void installKeyboardActions()キーボード操作をインストールします。 -
installComponents
protected void installComponents()コンポーネントを取り付けます。 -
installListeners
protected void installListeners()リスナーをインストールします。- 導入されたバージョン:
- 1.3
-
uninstallDefaults
protected void uninstallDefaults()デフォルトをアンインストールします。 -
uninstallComponents
protected void uninstallComponents()コンポーネントをアンインストールします。 -
uninstallListeners
protected void uninstallListeners()リスナーをアンインストールします。- 導入されたバージョン:
- 1.3
-
uninstallKeyboardActions
protected void uninstallKeyboardActions()キーボード操作をアンインストールします。 -
createLayoutManager
-
createPropertyChangeListener
-
getPreferredSize
public Dimension getPreferredSize(JComponent x) 優先サイズを返します。- オーバーライド:
getPreferredSize、クラスComponentUI- パラメータ:
x- コンポーネント- 戻り値:
- 推奨サイズ
- 関連項目:
-
getMinimumSize
public Dimension getMinimumSize(JComponent x) 最小サイズを返します。- オーバーライド:
getMinimumSize、クラスComponentUI- パラメータ:
x- コンポーネント- 戻り値:
- 最小サイズ
- 関連項目:
-
getMaximumSize
public Dimension getMaximumSize(JComponent x) 最大サイズを返します。- オーバーライド:
getMaximumSize、クラスComponentUI- パラメータ:
x- コンポーネント- 戻り値:
- 最大サイズ
- 関連項目:
-
replacePane
protected void replacePane(JComponent currentPane, JComponent newPane) 必要なマウス・ハンドラをnewPaneにインストールし、フレームに追加します。currentPaneの逆の処理です。- パラメータ:
currentPane- このJComponentは、マウス・ハンドラがインストールされている現在表示されているペインですnewPane- このJComponentは追加され、マウス・ハンドラがインストールされているペインです
-
deinstallMouseHandlers
-
installMouseHandlers
-
createNorthPane
-
createSouthPane
-
createWestPane
-
createEastPane
-
createBorderListener
protected MouseInputAdapter createBorderListener(JInternalFrame w) ボーダー・リスナーを作成します。- パラメータ:
w- 内部フレーム- 戻り値:
- ボーダー・リスナー
-
createInternalFrameListener
protected void createInternalFrameListener()内部フレーム・リスナーを作成します。 -
isKeyBindingRegistered
protected final boolean isKeyBindingRegistered()キー・バインディングが登録されているかどうかを返します。- 戻り値:
- キー・バインディングが登録されているかどうか
-
setKeyBindingRegistered
protected final void setKeyBindingRegistered(boolean b) キー・バインディング登録を設定します。- パラメータ:
b- キー・バインディング登録の新しい値
-
isKeyBindingActive
public final boolean isKeyBindingActive()キー・バインディングがアクティブかどうかを返します。- 戻り値:
- キー・バインディングがアクティブかどうか
-
setKeyBindingActive
protected final void setKeyBindingActive(boolean b) キー・バインディング・アクティビティを設定します。- パラメータ:
b- キー・バインディング・アクティビティの新しい値
-
setupMenuOpenKey
protected void setupMenuOpenKey()メニュー・オープン・キーを設定します。 -
setupMenuCloseKey
protected void setupMenuCloseKey()メニュー・クローズ・キーを設定します。 -
getNorthPane
-
setNorthPane
-
getSouthPane
-
setSouthPane
-
getWestPane
-
setWestPane
-
getEastPane
-
setEastPane
-
getDesktopManager
protected DesktopManager getDesktopManager()適切なDesktopManagerを返します。 getDesktopPane()を呼び出してJDesktopコンポーネントを検索し、同コンポーネントからDesktopManagerを返します。 これが失敗した場合は、任意の親で動作しているはずのデフォルトDesktopManagerを返します。- 戻り値:
- 適切なDesktopManager
-
createDesktopManager
-
closeFrame
protected void closeFrame(JInternalFrame f) ユーザーがフレームを閉じるときに呼び出されます。playCloseSoundアクションがトリガーされます。 このアクションはdesktopManagerに委譲されます。- パラメータ:
f-JInternalFrameが表示されています
-
maximizeFrame
protected void maximizeFrame(JInternalFrame f) ユーザーがフレームを最大化するときに呼び出されます。playMaximizeSoundアクションがトリガーされます。 このアクションはdesktopManagerに委譲されます。- パラメータ:
f-JInternalFrameが表示されています
-
minimizeFrame
protected void minimizeFrame(JInternalFrame f) ユーザーがフレームを最小化するときに呼び出されます。playRestoreDownSoundアクションがトリガーされます。 このアクションはdesktopManagerに委譲されます。- パラメータ:
f-JInternalFrameが表示されています
-
iconifyFrame
protected void iconifyFrame(JInternalFrame f) ユーザーがフレームをアイコン化するときに呼び出されます。playMinimizeSoundアクションがトリガーされます。 このアクションはdesktopManagerに委譲されます。- パラメータ:
f-JInternalFrameが表示されています
-
deiconifyFrame
protected void deiconifyFrame(JInternalFrame f) ユーザーがフレームのアイコン化を解除するときに呼び出されます。playRestoreUpSoundアクションがトリガーされます。 このアクションはdesktopManagerに委譲されます。- パラメータ:
f-JInternalFrameが表示されています
-
activateFrame
protected void activateFrame(JInternalFrame f) フレームが選択状態になるときに呼び出されます。 このアクションはdesktopManagerに委譲されます。- パラメータ:
f-JInternalFrameが表示されています
-
deactivateFrame
protected void deactivateFrame(JInternalFrame f) フレームの選択が解除されるときに呼び出されます。 このアクションはdesktopManagerに委譲されます。- パラメータ:
f-JInternalFrameが表示されています
-
createComponentListener
-
createGlassPaneDispatcher
protected MouseInputListener createGlassPaneDispatcher()GlassPaneDispatcherを作成します。- 戻り値:
- a
GlassPaneDispatcher
-