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, 2014, Oracle and/or its affiliates. All rights reserved.