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

クラスBasicInternalFrameTitlePane

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.plaf.basic.BasicInternalFrameTitlePane
すべての実装されたインタフェース:
ImageObserver, MenuContainer, Serializable
直系の既知のサブクラス:
MetalInternalFrameTitlePane

public class BasicInternalFrameTitlePane
extends JComponent
基本のタイトル・バーを管理するクラス

警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4では、すべてのJavaBeansの長期ストレージのサポートがjava.beansパッケージに追加されました。 XMLEncoderを参照してください。

  • フィールド詳細

    • iconButton

      protected JButton iconButton
      アイコン化ボタン。
    • maxButton

      protected JButton maxButton
      最大化ボタン。
    • closeButton

      protected JButton closeButton
      閉じるボタン。
    • windowMenu

      protected JMenu windowMenu
      JMenuのインスタンス。
    • frame

      protected JInternalFrame frame
      JInternalFrameのインスタンス。
    • selectedTitleColor

      protected Color selectedTitleColor
      選択したタイトルの色です。
    • selectedTextColor

      protected Color selectedTextColor
      選択されたテキストの色。
    • notSelectedTitleColor

      protected Color notSelectedTitleColor
      選択されていないタイトルの色です。
    • notSelectedTextColor

      protected Color notSelectedTextColor
      選択されていないテキストの色です。
    • maxIcon

      protected Icon maxIcon
      最大化アイコン。
    • minIcon

      protected Icon minIcon
      最小化アイコン。
    • iconIcon

      protected Icon iconIcon
      アイコン化アイコン。
    • closeIcon

      protected Icon closeIcon
      閉じるアイコン。
    • propertyChangeListener

      protected PropertyChangeListener propertyChangeListener
      PropertyChangeListenerのインスタンス。
    • closeAction

      protected Action closeAction
      CloseActionのインスタンス。
    • maximizeAction

      protected Action maximizeAction
      MaximizeActionのインスタンス。
    • iconifyAction

      protected Action iconifyAction
      IconifyActionのインスタンス。
    • restoreAction

      protected Action restoreAction
      RestoreActionのインスタンス。
    • moveAction

      protected Action moveAction
      MoveActionのインスタンス。
    • sizeAction

      protected Action sizeAction
      SizeActionのインスタンス。
    • CLOSE_CMD

      protected static final String CLOSE_CMD
      閉じるボタンのテキスト・プロパティ。
    • ICONIFY_CMD

      protected static final String ICONIFY_CMD
      ボタン・テキスト・プロパティを最小化します。
    • RESTORE_CMD

      protected static final String RESTORE_CMD
      リストア・ボタンのテキスト・プロパティ。
    • MAXIMIZE_CMD

      protected static final String MAXIMIZE_CMD
      ボタン・テキスト・プロパティを最大化します。
    • MOVE_CMD

      protected static final String MOVE_CMD
      移動ボタンのテキスト・プロパティ。
    • SIZE_CMD

      protected static final String SIZE_CMD
      サイズ・ボタンのテキスト・プロパティ。
  • コンストラクタの詳細

    • BasicInternalFrameTitlePane

      public BasicInternalFrameTitlePane​(JInternalFrame f)
      BasicInternalFrameTitlePaneの新しいインスタンスを構築します。
      パラメータ:
      f - JInternalFrameのインスタンス
  • メソッドの詳細

    • installTitlePane

      protected void installTitlePane()
      タイトル・ペインをインストールします。
    • addSubComponents

      protected void addSubComponents()
      サブコンポーネントを追加します。
    • createActions

      protected void createActions()
      アクションを作成します。
    • installListeners

      protected void installListeners()
      リスナーを登録します。
    • uninstallListeners

      protected void uninstallListeners()
      リスナーの登録を解除します。
    • installDefaults

      protected void installDefaults()
      デフォルトのプロパティをインストールします。
    • uninstallDefaults

      protected void uninstallDefaults()
      デフォルト・プロパティをアンインストールします。
    • createButtons

      protected void createButtons()
      ボタンを作成します。
    • setButtonIcons

      protected void setButtonIcons()
      ボタンのアイコンを設定します。
    • assembleSystemMenu

      protected void assembleSystemMenu()
      システム・メニューをアセンブルします。
    • addSystemMenuItems

      protected void addSystemMenuItems​(JMenu systemMenu)
      systemMenuにシステム・メニュー・アイテムを追加します。
      パラメータ:
      systemMenu - JMenuのインスタンス
    • createSystemMenu

      protected JMenu createSystemMenu()
      JMenuの新しいインスタンスを返します。
      戻り値:
      JMenuの新しいインスタンス
    • createSystemMenuBar

      protected JMenuBar createSystemMenuBar()
      JMenuBarの新しいインスタンスを返します。
      戻り値:
      JMenuBarの新しいインスタンス
    • showSystemMenu

      protected void showSystemMenu()
      システム・メニューを表示します。
    • paintTitleBackground

      protected void paintTitleBackground​(Graphics g)
      paintComponentから呼び出されます。 タイトル・ペインのバックグラウンドをペイントします。 すると、すべてのテキストとアイコンがこのバックグラウンドの上にレンダリングされることになります。
      パラメータ:
      g - バックグラウンドをレンダリングするために使用されるグラフィックス
      導入されたバージョン:
      1.4
    • getTitle

      protected String getTitle​(String text, FontMetrics fm, int availTextWidth)
      タイトルを返します。
      パラメータ:
      text - テキスト
      fm - FontMetricsのインスタンス
      availTextWidth - 使用可能なテキストの幅
      戻り値:
      タイトル。
    • postClosingEvent

      protected void postClosingEvent​(JInternalFrame frame)
      フレームにWINDOW_CLOSINGのようなイベントをポストすると、通常のFrameのように扱うことができます。
      パラメータ:
      frame - JInternalFrameのインスタンス
    • enableActions

      protected void enableActions()
      アクションを有効にします。
    • createPropertyChangeListener

      protected PropertyChangeListener createPropertyChangeListener()
      PropertyChangeListenerのインスタンスを返します。
      戻り値:
      PropertyChangeListenerのインスタンス
    • createLayout

      protected LayoutManager createLayout()
      レイアウト・マネージャを返します。
      戻り値:
      レイアウト・マネージャ