public class BasicMenuUI extends BasicMenuItemUI
| Modifier and Type | Class and Description |
|---|---|
class |
BasicMenuUI.ChangeHandler
As of Java 2 platform 1.4, this previously undocumented class
is now obsolete.
|
protected class |
BasicMenuUI.MouseInputHandler
Instantiated and used by a menu item to handle the current menu selection
from mouse events.
|
| Modifier and Type | Field and Description |
|---|---|
protected ChangeListener |
changeListener |
protected MenuListener |
menuListener |
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground| Constructor and Description |
|---|
BasicMenuUI() |
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 in class BasicMenuItemUIprotected String getPropertyPrefix()
getPropertyPrefix in class BasicMenuItemUIprotected void installListeners()
installListeners in class BasicMenuItemUIprotected void installKeyboardActions()
installKeyboardActions in class BasicMenuItemUIprotected void uninstallKeyboardActions()
uninstallKeyboardActions in class BasicMenuItemUIprotected MouseInputListener createMouseInputListener(JComponent c)
createMouseInputListener in class BasicMenuItemUIprotected MenuListener createMenuListener(JComponent c)
protected ChangeListener createChangeListener(JComponent c)
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
BasicMenuItemUIPropertyChangeListener which will be added to
the menu item.
If this method returns null then it will not be added to the menu item.createPropertyChangeListener in class BasicMenuItemUIPropertyChangeListener or nullprotected void uninstallDefaults()
uninstallDefaults in class BasicMenuItemUIprotected void uninstallListeners()
uninstallListeners in class BasicMenuItemUIprotected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
createMenuDragMouseListener in class BasicMenuItemUIprotected MenuKeyListener createMenuKeyListener(JComponent c)
createMenuKeyListener in class BasicMenuItemUIpublic Dimension getMaximumSize(JComponent c)
ComponentUInull is returned, the maximum
size will be calculated by the component's layout manager instead
(this is the preferred approach for any component with a specific
layout manager installed). The default implementation of this
method invokes getPreferredSize and returns that value.getMaximumSize in class BasicMenuItemUIc - the component whose maximum size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsDimension object or nullJComponent.getMaximumSize(),
LayoutManager2.maximumLayoutSize(java.awt.Container)protected void setupPostTimer(JMenu menu)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.