java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.MenuBarUI
javax.swing.plaf.basic.BasicMenuBarUI
- 直系の既知のサブクラス:
MetalMenuBarUI,SynthMenuBarUI
public class BasicMenuBarUI extends MenuBarUI
MenuBarUIのデフォルトL&F実装です。 この実装は、「結合された」ビュー/コントローラです。
-
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 protected ChangeListenerchangeListenerChangeListenerのインスタンス。protected ContainerListenercontainerListenerContainerListenerのインスタンス。protected JMenuBarmenuBarJMenuBarのインスタンス。 -
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 BasicMenuBarUI() -
メソッドのサマリー
修飾子と型 メソッド 説明 protected ChangeListenercreateChangeListener()ChangeListenerのインスタンスを返します。protected ContainerListenercreateContainerListener()ContainerListenerのインスタンスを返します。static ComponentUIcreateUI(JComponent x)BasicMenuBarUIの新しいインスタンスを返します。protected voidinstallDefaults()デフォルトのプロパティをインストールします。protected voidinstallKeyboardActions()キーボード・アクションを登録します。protected voidinstallListeners()リスナーを登録します。protected voiduninstallDefaults()デフォルト・プロパティをアンインストールします。protected voiduninstallKeyboardActions()キーボード・アクションを登録解除します。protected voiduninstallListeners()リスナーの登録を解除します。クラス javax.swing.plaf.ComponentUIで宣言されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
フィールド詳細
-
menuBar
protected JMenuBar menuBarJMenuBarのインスタンス。 -
containerListener
protected ContainerListener containerListenerContainerListenerのインスタンス。 -
changeListener
protected ChangeListener changeListenerChangeListenerのインスタンス。
-
-
コンストラクタの詳細
-
BasicMenuBarUI
public BasicMenuBarUI()
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent x)BasicMenuBarUIの新しいインスタンスを返します。- パラメータ:
x- コンポーネント- 戻り値:
BasicMenuBarUIの新しいインスタンス
-
installDefaults
protected void installDefaults()デフォルトのプロパティをインストールします。 -
installListeners
protected void installListeners()リスナーを登録します。 -
installKeyboardActions
protected void installKeyboardActions()キーボード・アクションを登録します。 -
uninstallDefaults
protected void uninstallDefaults()デフォルト・プロパティをアンインストールします。 -
uninstallListeners
protected void uninstallListeners()リスナーの登録を解除します。 -
uninstallKeyboardActions
protected void uninstallKeyboardActions()キーボード・アクションを登録解除します。 -
createContainerListener
protected ContainerListener createContainerListener()ContainerListenerのインスタンスを返します。- 戻り値:
ContainerListenerのインスタンス
-
createChangeListener
protected ChangeListener createChangeListener()ChangeListenerのインスタンスを返します。- 戻り値:
ChangeListenerのインスタンス
-