public class BasicMenuUI extends BasicMenuItemUI
| 修飾子と型 | クラス | 説明 |
|---|---|---|
class |
BasicMenuUI.ChangeHandler |
Java 2プラットフォーム1.4から、以前にドキュメントから削除されたこのクラスは廃止されました。
|
protected class |
BasicMenuUI.MouseInputHandler |
マウス・イベントからの現在のメニュー選択を処理するために、メニュー項目によりインスタンス化されて使用されます。
|
| 修飾子と型 | フィールド | 説明 |
|---|---|---|
protected ChangeListener |
changeListener |
|
protected MenuListener |
menuListener |
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground| コンストラクタ | 説明 |
|---|---|
BasicMenuUI() |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
protected ChangeListener |
createChangeListener(JComponent c) |
|
protected MenuDragMouseListener |
createMenuDragMouseListener(JComponent c) |
|
protected MenuKeyListener |
createMenuKeyListener(JComponent c) |
|
protected MenuListener |
createMenuListener(JComponent c) |
|
protected MouseInputListener |
createMouseInputListener(JComponent c) |
|
protected PropertyChangeListener |
createPropertyChangeListener(JComponent c) |
メニュー項目に追加される
PropertyChangeListenerを作成します。 |
static ComponentUI |
createUI(JComponent x) |
|
Dimension |
getMaximumSize(JComponent c) |
指定されたコンポーネントの、Look & Feelに適した最大サイズを返します。
|
protected String |
getPropertyPrefix() |
|
protected void |
installDefaults() |
|
protected void |
installKeyboardActions() |
|
protected void |
installListeners() |
|
protected void |
setupPostTimer(JMenu menu) |
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallKeyboardActions() |
|
protected void |
uninstallListeners() |
doClick, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, installUI, paint, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallUI, updatecontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorprotected ChangeListener changeListener
protected MenuListener menuListener
public static ComponentUI createUI(JComponent x)
protected void installDefaults()
installDefaults、クラスBasicMenuItemUIprotected String getPropertyPrefix()
getPropertyPrefix、クラスBasicMenuItemUIprotected void installListeners()
installListeners、クラスBasicMenuItemUIprotected void installKeyboardActions()
installKeyboardActions、クラスBasicMenuItemUIprotected void uninstallKeyboardActions()
uninstallKeyboardActions、クラスBasicMenuItemUIprotected MouseInputListener createMouseInputListener(JComponent c)
createMouseInputListener、クラスBasicMenuItemUIprotected MenuListener createMenuListener(JComponent c)
protected ChangeListener createChangeListener(JComponent c)
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
BasicMenuItemUIPropertyChangeListenerを作成します。 このメソッドがnullを返す場合、これはメニュー項目に追加されません。 createPropertyChangeListener、クラスBasicMenuItemUIPropertyChangeListenerのインスタンス、またはnullprotected void uninstallDefaults()
uninstallDefaults、クラスBasicMenuItemUIprotected void uninstallListeners()
uninstallListeners、クラスBasicMenuItemUIprotected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
createMenuDragMouseListener、クラスBasicMenuItemUIprotected MenuKeyListener createMenuKeyListener(JComponent c)
createMenuKeyListener、クラスBasicMenuItemUIpublic Dimension getMaximumSize(JComponent c)
ComponentUInullが返された場合、最大サイズは代わりにコンポーネントのレイアウト・マネージャによって計算されます(これは、特定のレイアウト・マネージャをインストールしてあるコンポーネントの場合に推奨する方法です)。 このメソッドのデフォルト実装はgetPreferredSizeを呼び出して、その値を返します。 getMaximumSize、クラスBasicMenuItemUIc - 最大サイズが照会されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるDimensionオブジェクトまたはnullJComponent.getMaximumSize(), LayoutManager2.maximumLayoutSize(java.awt.Container)protected void setupPostTimer(JMenu menu)
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。