所有类


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 的默认 L&F 实现。此实现是一个“组合的”视图/控制器。


嵌套类摘要
 class BasicMenuUI.ChangeHandler
          从 Java 2 平台 1.4 开始,已废弃这种以前没有记录的类。
protected  class BasicMenuUI.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 继承的方法
doClick, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, installUI, paint, paintBackground, paintMenuItem, paintText, 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

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部