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 ChangeListener
ChangeListener
のインスタンス。protected ContainerListener
ContainerListener
のインスタンス。protected JMenuBar
JMenuBar
のインスタンス。 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明protected ChangeListener
ChangeListener
のインスタンスを返します。protected ContainerListener
ContainerListener
のインスタンスを返します。static ComponentUI
BasicMenuBarUI
の新しいインスタンスを返します。protected void
デフォルトのプロパティをインストールします。protected void
キーボード・アクションを登録します。protected void
リスナーを登録します。protected void
デフォルト・プロパティをアンインストールします。protected void
キーボード・アクションを登録解除します。protected void
リスナーの登録を解除します。クラスjavax.swing.plaf.ComponentUIで宣言されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
フィールド詳細
-
containerListener
protected ContainerListener containerListenerContainerListener
のインスタンス。 -
changeListener
protected ChangeListener changeListenerChangeListener
のインスタンス。
-
コンストラクタの詳細
-
BasicMenuBarUI
public BasicMenuBarUI()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
のインスタンス
-