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, update
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
protected ChangeListener changeListener
protected MenuListener menuListener
public static ComponentUI createUI(JComponent x)
protected void installDefaults()
installDefaults
、クラスBasicMenuItemUI
protected String getPropertyPrefix()
getPropertyPrefix
、クラスBasicMenuItemUI
protected void installListeners()
installListeners
、クラスBasicMenuItemUI
protected void installKeyboardActions()
installKeyboardActions
、クラスBasicMenuItemUI
protected void uninstallKeyboardActions()
uninstallKeyboardActions
、クラスBasicMenuItemUI
protected MouseInputListener createMouseInputListener(JComponent c)
createMouseInputListener
、クラスBasicMenuItemUI
protected MenuListener createMenuListener(JComponent c)
protected ChangeListener createChangeListener(JComponent c)
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
BasicMenuItemUI
PropertyChangeListener
を作成します。 このメソッドがnullを返す場合、これはメニュー項目に追加されません。 createPropertyChangeListener
、クラスBasicMenuItemUI
PropertyChangeListener
のインスタンス、またはnullprotected void uninstallDefaults()
uninstallDefaults
、クラスBasicMenuItemUI
protected void uninstallListeners()
uninstallListeners
、クラスBasicMenuItemUI
protected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
createMenuDragMouseListener
、クラスBasicMenuItemUI
protected MenuKeyListener createMenuKeyListener(JComponent c)
createMenuKeyListener
、クラスBasicMenuItemUI
public Dimension getMaximumSize(JComponent c)
ComponentUI
null
が返された場合、最大サイズは代わりにコンポーネントのレイアウト・マネージャによって計算されます(これは、特定のレイアウト・マネージャをインストールしてあるコンポーネントの場合に推奨する方法です)。 このメソッドのデフォルト実装はgetPreferredSize
を呼び出して、その値を返します。 getMaximumSize
、クラスBasicMenuItemUI
c
- 最大サイズが照会されるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるDimension
オブジェクトまたはnull
JComponent.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も参照してください。