JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.plaf.basic
クラス BasicMenuUI

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

public class BasicMenuUI
extends BasicMenuItemUI

MenuUI のデフォルトの Look & Feel による実装です。この実装は、ビューとコントローラを一体化したものです。


内部クラスの概要
 class BasicMenuUI.ChangeHandler
           
 
クラス javax.swing.plaf.basic.BasicMenuItemUI から継承した内部クラス
BasicMenuItemUI.MouseInputHandler
 
フィールドの概要
protected  ChangeListener changeListener
           
protected  MenuListener menuListener
           
protected  PropertyChangeListener propertyChangeListener
           
 
クラス javax.swing.plaf.basic.BasicMenuItemUI から継承したフィールド
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, 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)
           
static ComponentUI createUI(JComponent x)
           
 Dimension getMaximumSize(JComponent c)
           
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()
           
 
クラス javax.swing.plaf.basic.BasicMenuItemUI から継承したメソッド
getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, installUI, paint, paintMenuItem, uninstallComponents, uninstallUI, update
 
クラス javax.swing.plaf.ComponentUI から継承したメソッド
contains, getAccessibleChild, getAccessibleChildrenCount
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

changeListener

protected ChangeListener changeListener

propertyChangeListener

protected PropertyChangeListener propertyChangeListener

menuListener

protected MenuListener menuListener
コンストラクタの詳細

BasicMenuUI

public BasicMenuUI()
メソッドの詳細

createUI

public static ComponentUI createUI(JComponent x)

installDefaults

protected void installDefaults()
オーバーライド:
クラス BasicMenuItemUI 内の installDefaults

getPropertyPrefix

protected String getPropertyPrefix()
オーバーライド:
クラス BasicMenuItemUI 内の getPropertyPrefix

installListeners

protected void installListeners()
オーバーライド:
クラス BasicMenuItemUI 内の installListeners

installKeyboardActions

protected void installKeyboardActions()
オーバーライド:
クラス BasicMenuItemUI 内の installKeyboardActions

uninstallKeyboardActions

protected void uninstallKeyboardActions()
オーバーライド:
クラス BasicMenuItemUI 内の uninstallKeyboardActions

createMouseInputListener

protected MouseInputListener createMouseInputListener(JComponent c)
オーバーライド:
クラス BasicMenuItemUI 内の createMouseInputListener

createMenuListener

protected MenuListener createMenuListener(JComponent c)

createChangeListener

protected ChangeListener createChangeListener(JComponent c)

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener(JComponent c)

uninstallDefaults

protected void uninstallDefaults()
オーバーライド:
クラス BasicMenuItemUI 内の uninstallDefaults

uninstallListeners

protected void uninstallListeners()
オーバーライド:
クラス BasicMenuItemUI 内の uninstallListeners

createMenuDragMouseListener

protected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
オーバーライド:
クラス BasicMenuItemUI 内の createMenuDragMouseListener

createMenuKeyListener

protected MenuKeyListener createMenuKeyListener(JComponent c)
オーバーライド:
クラス BasicMenuItemUI 内の createMenuKeyListener

getMaximumSize

public Dimension getMaximumSize(JComponent c)
オーバーライド:
クラス BasicMenuItemUI 内の getMaximumSize

setupPostTimer

protected void setupPostTimer(JMenu menu)

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.