This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing.plaf.basic
class BasicMenuUI
public class BasicMenuUI
extends BasicMenuItemUI
A default L&F implementation of MenuUI. This implementation
is a "combined" view/controller.
Nested Class Summary |
class |
As of Java 2 platform 1.4, this previously undocumented class
is now obsolete. |
protected class |
Instantiated and used by a menu item to handle the current menu selection
from mouse events. |
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground |
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, createUI, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, getPropertyPrefix, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, paint, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
changeListener
protected ChangeListener changeListener
-
menuListener
protected MenuListener menuListener
-
BasicMenuUI
public BasicMenuUI()
-
createChangeListener
protected ChangeListener createChangeListener(JComponent c)
-
- Parameters:
c
createMenuDragMouseListener
protected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
-
- Overrides:
createMenuDragMouseListener
in class BasicMenuItemUI
- Parameters:
c
createMenuKeyListener
protected MenuKeyListener createMenuKeyListener(JComponent c)
-
- Overrides:
createMenuKeyListener
in class BasicMenuItemUI
- Parameters:
c
createMenuListener
protected MenuListener createMenuListener(JComponent c)
-
- Parameters:
c
createMouseInputListener
protected MouseInputListener createMouseInputListener(JComponent c)
-
- Overrides:
createMouseInputListener
in class BasicMenuItemUI
- Parameters:
c
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
-
- Overrides:
createPropertyChangeListener
in class BasicMenuItemUI
- Parameters:
c
createUI
public static ComponentUI createUI(JComponent x)
-
- Parameters:
x
getMaximumSize
public Dimension getMaximumSize(JComponent c)
-
- Overrides:
getMaximumSize
in class BasicMenuItemUI
- Parameters:
c
getPropertyPrefix
protected String getPropertyPrefix()
-
- Overrides:
getPropertyPrefix
in class BasicMenuItemUI
installDefaults
protected void installDefaults()
-
- Overrides:
installDefaults
in class BasicMenuItemUI
installKeyboardActions
protected void installKeyboardActions()
-
- Overrides:
installKeyboardActions
in class BasicMenuItemUI
installListeners
protected void installListeners()
-
- Overrides:
installListeners
in class BasicMenuItemUI
setupPostTimer
protected void setupPostTimer(JMenu menu)
-
- Parameters:
menu
uninstallDefaults
protected void uninstallDefaults()
-
- Overrides:
uninstallDefaults
in class BasicMenuItemUI
uninstallKeyboardActions
protected void uninstallKeyboardActions()
-
- Overrides:
uninstallKeyboardActions
in class BasicMenuItemUI
uninstallListeners
protected void uninstallListeners()
-
- Overrides:
uninstallListeners
in class BasicMenuItemUI
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.