- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.MenuItemUI
-
- javax.swing.plaf.basic.BasicMenuItemUI
-
- javax.swing.plaf.basic.BasicCheckBoxMenuItemUI
-
public class BasicCheckBoxMenuItemUI extends BasicMenuItemUI
BasicCheckboxMenuItem实现
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI
BasicMenuItemUI.MouseInputHandler
-
-
Field Summary
-
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
-
-
构造方法摘要
构造方法 Constructor 描述 BasicCheckBoxMenuItemUI()
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 Modifier and Type 方法 描述 static ComponentUI
createUI(JComponent c)
构造一个新的实例BasicCheckBoxMenuItemUI
。protected String
getPropertyPrefix()
返回属性前缀。void
processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
当鼠标事件发生时调用。-
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, paint, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
-
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent c)
构造一个新的实例BasicCheckBoxMenuItemUI
。- 参数
-
c
- 一个组件 - 结果
-
一个新的例子
BasicCheckBoxMenuItemUI
-
getPropertyPrefix
protected String getPropertyPrefix()
描述从类复制:BasicMenuItemUI
返回属性前缀。- 重写:
-
getPropertyPrefix
在BasicMenuItemUI
- 结果
- 属性前缀
-
processMouseEvent
public void processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
当鼠标事件发生时调用。- 参数
-
item
- 一个菜单项 -
e
- 一个鼠标事件 -
path
-的阵列MenuElement
-
manager
-实例MenuSelectionManager
-
-