- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.MenuItemUI
-
- javax.swing.plaf.basic.BasicMenuItemUI
-
- javax.swing.plaf.basic.BasicMenuUI
-
- 直系の既知のサブクラス:
SynthMenuUI
public class BasicMenuUI extends BasicMenuItemUI
MenuUIのデフォルトのL&F実装です。 この実装は、「結合された」ビュー/コントローラです。
-
-
ネストされたクラスのサマリー
ネストされたクラス 修飾子と型 クラス 説明 classBasicMenuUI.ChangeHandlerJava 2プラットフォーム1.4から、以前にドキュメントから削除されたこのクラスは廃止されました。protected classBasicMenuUI.MouseInputHandlerマウス・イベントからの現在のメニュー選択を処理するために、メニュー項目によりインスタンス化されて使用されます。
-
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 protected ChangeListenerchangeListenerChangeListenerのインスタンス。protected MenuListenermenuListenerMenuListenerのインスタンス。-
クラス javax.swing.plaf.basic.BasicMenuItemUIから継承されたフィールド
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 BasicMenuUI()
-
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 protected ChangeListenercreateChangeListener(JComponent c)ChangeListenerのインスタンスを返します。protected MenuDragMouseListenercreateMenuDragMouseListener(JComponent c)MenuDragMouseListenerのインスタンスを返します。protected MenuKeyListenercreateMenuKeyListener(JComponent c)MenuKeyListenerのインスタンスを返します。protected MenuListenercreateMenuListener(JComponent c)MenuListenerのインスタンスを返します。protected MouseInputListenercreateMouseInputListener(JComponent c)MouseInputListenerのインスタンスを返します。protected PropertyChangeListenercreatePropertyChangeListener(JComponent c)メニュー項目に追加されるPropertyChangeListenerを作成します。static ComponentUIcreateUI(JComponent x)BasicMenuUIの新しいインスタンスを構築します。DimensiongetMaximumSize(JComponent c)指定されたコンポーネントの、Look & Feelに適した最大サイズを返します。protected StringgetPropertyPrefix()プロパティのプレフィクスを返します。protected voidinstallDefaults()デフォルトのプロパティをインストールします。protected voidinstallKeyboardActions()キーボード操作を登録します。protected voidinstallListeners()リスナーを登録します。protected voidsetupPostTimer(JMenu menu)タイマーをmenuに設定します。protected voiduninstallDefaults()既定のプロパティをアンインストールします。protected voiduninstallKeyboardActions()キーボード操作の登録を解除します。protected voiduninstallListeners()リスナーを登録解除します。-
クラス javax.swing.plaf.basic.BasicMenuItemUIから継承されたメソッド
doClick, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, installUI, paint, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallUI, update
-
クラス javax.swing.plaf.ComponentUIから継承されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
-
-
-
フィールドの詳細
-
changeListener
protected ChangeListener changeListener
ChangeListenerのインスタンス。
-
menuListener
protected MenuListener menuListener
MenuListenerのインスタンス。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent x)
BasicMenuUIの新しいインスタンスを構築します。- パラメータ:
x- コンポーネント- 戻り値:
BasicMenuUIの新しいインスタンス
-
installDefaults
protected void installDefaults()
クラスからコピーされた説明:BasicMenuItemUIデフォルトのプロパティをインストールします。- オーバーライド:
installDefaults、クラス:BasicMenuItemUI
-
getPropertyPrefix
protected String getPropertyPrefix()
クラスからコピーされた説明:BasicMenuItemUIプロパティのプレフィクスを返します。- オーバーライド:
getPropertyPrefix、クラス:BasicMenuItemUI- 戻り値:
- プロパティ・プレフィクス
-
installListeners
protected void installListeners()
クラスからコピーされた説明:BasicMenuItemUIリスナーを登録します。- オーバーライド:
installListeners、クラス:BasicMenuItemUI
-
installKeyboardActions
protected void installKeyboardActions()
クラスからコピーされた説明:BasicMenuItemUIキーボード操作を登録します。- オーバーライド:
installKeyboardActions、クラス:BasicMenuItemUI
-
uninstallKeyboardActions
protected void uninstallKeyboardActions()
クラスからコピーされた説明:BasicMenuItemUIキーボード操作の登録を解除します。- オーバーライド:
uninstallKeyboardActions、クラス:BasicMenuItemUI
-
createMouseInputListener
protected MouseInputListener createMouseInputListener(JComponent c)
クラスからコピーされた説明:BasicMenuItemUIMouseInputListenerのインスタンスを返します。- オーバーライド:
createMouseInputListener、クラス:BasicMenuItemUI- パラメータ:
c- コンポーネント- 戻り値:
MouseInputListenerのインスタンス
-
createMenuListener
protected MenuListener createMenuListener(JComponent c)
MenuListenerのインスタンスを返します。- パラメータ:
c- コンポーネント- 戻り値:
MenuListenerのインスタンス
-
createChangeListener
protected ChangeListener createChangeListener(JComponent c)
ChangeListenerのインスタンスを返します。- パラメータ:
c- コンポーネント- 戻り値:
ChangeListenerのインスタンス
-
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
クラスからコピーされた説明:BasicMenuItemUIメニュー項目に追加されるPropertyChangeListenerを作成します。 このメソッドがnullを返す場合、これはメニュー項目に追加されません。- オーバーライド:
createPropertyChangeListener、クラス:BasicMenuItemUI- パラメータ:
c- コンポーネント- 戻り値:
PropertyChangeListenerのインスタンス、またはnull
-
uninstallDefaults
protected void uninstallDefaults()
クラスからコピーされた説明:BasicMenuItemUI既定のプロパティをアンインストールします。- オーバーライド:
uninstallDefaults、クラス:BasicMenuItemUI
-
uninstallListeners
protected void uninstallListeners()
クラスからコピーされた説明:BasicMenuItemUIリスナーを登録解除します。- オーバーライド:
uninstallListeners、クラス:BasicMenuItemUI
-
createMenuDragMouseListener
protected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
クラスからコピーされた説明:BasicMenuItemUIMenuDragMouseListenerのインスタンスを返します。- オーバーライド:
createMenuDragMouseListener、クラス:BasicMenuItemUI- パラメータ:
c- コンポーネント- 戻り値:
MenuDragMouseListenerのインスタンス
-
createMenuKeyListener
protected MenuKeyListener createMenuKeyListener(JComponent c)
クラスからコピーされた説明:BasicMenuItemUIMenuKeyListenerのインスタンスを返します。- オーバーライド:
createMenuKeyListener、クラス:BasicMenuItemUI- パラメータ:
c- コンポーネント- 戻り値:
MenuKeyListenerのインスタンス
-
getMaximumSize
public Dimension getMaximumSize(JComponent c)
クラスからコピーされた説明:ComponentUI指定されたコンポーネントの、Look & Feelに適した最大サイズを返します。nullが返された場合、最大サイズは代わりにコンポーネントのレイアウト・マネージャによって計算されます(これは、特定のレイアウト・マネージャをインストールしてあるコンポーネントの場合に推奨する方法です)。 このメソッドのデフォルト実装はgetPreferredSizeを呼び出して、その値を返します。- オーバーライド:
getMaximumSize、クラス:BasicMenuItemUI- パラメータ:
c- 最大サイズが照会されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがある- 戻り値:
Dimensionオブジェクトまたはnull- 関連項目:
JComponent.getMaximumSize(),LayoutManager2.maximumLayoutSize(java.awt.Container)
-
setupPostTimer
protected void setupPostTimer(JMenu menu)
タイマーをmenuに設定します。- パラメータ:
menu-JMenuのインスタンス。
-
-