モジュール java.desktop
パッケージ javax.swing.plaf.basic

クラスBasicInternalFrameUI

直系の既知のサブクラス:
MetalInternalFrameUI, SynthInternalFrameUI

public class BasicInternalFrameUI extends InternalFrameUI
JInternalFrameの基本L&F実装です。
  • フィールド詳細

    • frame

      protected JInternalFrame frame
      frame
    • 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プラットフォーム1.3以降使われていません。
      以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.3以降では使用されません。 キー・バインディングはLookAndFeelによって定義されるようになりました。詳細はキー・バインディングの仕様を参照してください。
  • コンストラクタの詳細

    • BasicInternalFrameUI

      public BasicInternalFrameUI(JInternalFrame b)
      BasicInternalFrameUIを構築します。
      パラメータ:
      b - 内部フレーム
  • メソッドの詳細

    • createUI

      public static ComponentUI createUI(JComponent b)
      コンポーネントUIを返します。
      パラメータ:
      b - コンポーネント
      戻り値:
      コンポーネントUI
    • installUI

      public void installUI(JComponent c)
      UIをインストールします。
      オーバーライド:
      installUI、クラス: ComponentUI
      パラメータ:
      c - コンポーネント
      関連項目:
      ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()
    • uninstallUI

      public void uninstallUI(JComponent c)
      UIをアンインストールします。
      オーバーライド:
      uninstallUI、クラス: ComponentUI
      パラメータ:
      c - コンポーネント
      関連項目:
      ComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()
    • 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

      protected LayoutManager createLayoutManager()
      レイアウト・マネージャを作成します。
      戻り値:
      レイアウト・マネージャ
    • createPropertyChangeListener

      protected PropertyChangeListener createPropertyChangeListener()
      プロパティ変更リスナーを作成します。
      戻り値:
      プロパティ変更リスナー
    • getPreferredSize

      public Dimension getPreferredSize(JComponent x)
      優先サイズを返します。
      オーバーライド:
      getPreferredSize、クラス: ComponentUI
      パラメータ:
      x - コンポーネント
      戻り値:
      推奨サイズ
      関連項目:
      JComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)
    • getMinimumSize

      public Dimension getMinimumSize(JComponent x)
      最小サイズを返します。
      オーバーライド:
      getMinimumSize、クラス: ComponentUI
      パラメータ:
      x - コンポーネント
      戻り値:
      最小サイズ
      関連項目:
      JComponent.getMinimumSize(), LayoutManager.minimumLayoutSize(java.awt.Container), ComponentUI.getPreferredSize(javax.swing.JComponent)
    • getMaximumSize

      public Dimension getMaximumSize(JComponent x)
      最大サイズを返します。
      オーバーライド:
      getMaximumSize、クラス: ComponentUI
      パラメータ:
      x - コンポーネント
      戻り値:
      最大サイズ
      関連項目:
      JComponent.getMaximumSize(), LayoutManager2.maximumLayoutSize(java.awt.Container)
    • replacePane

      protected void replacePane(JComponent currentPane, JComponent newPane)
      必要なマウス・ハンドラをnewPaneにインストールし、フレームに追加します。 currentPaneの逆の処理です。
      パラメータ:
      currentPane - このJcomponentは、マウス・ハンドラがインストールされている現在表示されているペインです
      newPane - このJcomponentは追加され、マウス・ハンドラがインストールされているペインです
    • deinstallMouseHandlers

      protected void deinstallMouseHandlers(JComponent c)
      マウス・ハンドラを削除します。
      パラメータ:
      c - コンポーネント
    • installMouseHandlers

      protected void installMouseHandlers(JComponent c)
      マウス・ハンドラをインストールします。
      パラメータ:
      c - コンポーネント
    • createNorthPane

      protected JComponent createNorthPane(JInternalFrame w)
      北ペインを作成します。
      パラメータ:
      w - 内部フレーム
      戻り値:
      北ペイン
    • createSouthPane

      protected JComponent createSouthPane(JInternalFrame w)
      北ペインを作成します。
      パラメータ:
      w - 内部フレーム
      戻り値:
      北ペイン
    • createWestPane

      protected JComponent createWestPane(JInternalFrame w)
      西ペインを作成します。
      パラメータ:
      w - 内部フレーム
      戻り値:
      西ペイン
    • createEastPane

      protected JComponent createEastPane(JInternalFrame w)
      東ペインを作成します。
      パラメータ:
      w - 内部フレーム
      戻り値:
      東ペイン
    • 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

      public JComponent getNorthPane()
      北ペインを返します。
      戻り値:
      北ペイン
    • setNorthPane

      public void setNorthPane(JComponent c)
      北ペインを設定します。
      パラメータ:
      c - 新しい北のペイン
    • getSouthPane

      public JComponent getSouthPane()
      南ペインを返します。
      戻り値:
      南ペイン
    • setSouthPane

      public void setSouthPane(JComponent c)
      南ペインを設定します。
      パラメータ:
      c - 新しい南の窓
    • getWestPane

      public JComponent getWestPane()
      西ペインを返します。
      戻り値:
      西ペイン
    • setWestPane

      public void setWestPane(JComponent c)
      西ペインを設定します。
      パラメータ:
      c - 新しい西のペイン
    • getEastPane

      public JComponent getEastPane()
      東ペインを返します。
      戻り値:
      東ペイン
    • setEastPane

      public void setEastPane(JComponent c)
      東ペインを設定します。
      パラメータ:
      c - 新しい東のペイン
    • getDesktopManager

      protected DesktopManager getDesktopManager()
      適切なDesktopManagerを返します。 getDesktopPane()を呼び出してJDesktopコンポーネントを検索し、同コンポーネントからDesktopManagerを返します。 これが失敗した場合は、任意の親で動作しているはずのデフォルトDesktopManagerを返します。
      戻り値:
      適切なDesktopManager
    • createDesktopManager

      protected 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

      protected ComponentListener createComponentListener()
      コンポーネント・リスナーを作成します。
      戻り値:
      コンポーネント・リスナー
    • createGlassPaneDispatcher

      protected MouseInputListener createGlassPaneDispatcher()
      GlassPaneDispatcherを作成します。
      戻り値:
      GlassPaneDispatcher