Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
public class: BasicMenuUI [javadoc | source]
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

Direct Known Subclasses:
    SynthMenuUI

A default L&F implementation of MenuUI. This implementation is a "combined" view/controller.
Nested Class Summary:
protected class  BasicMenuUI.MouseInputHandler  Instantiated and used by a menu item to handle the current menu selection from mouse events. A MouseInputHandler processes and forwards all mouse events to a shared instance of the MenuSelectionManager.

This class is protected so that it can be subclassed by other look and feels to implement their own mouse handling behavior. All overridden methods should call the parent methods so that the menu selection is correct. 

public class  BasicMenuUI.ChangeHandler  As of Java 2 platform 1.4, this previously undocumented class is now obsolete. KeyBindings are now managed by the popup menu. 
Field Summary
protected  ChangeListener changeListener     
protected  MenuListener menuListener     
Fields inherited from javax.swing.plaf.basic.BasicMenuItemUI:
menuItem,  selectionBackground,  selectionForeground,  disabledForeground,  acceleratorForeground,  acceleratorSelectionForeground,  acceleratorDelimiter,  defaultTextIconGap,  acceleratorFont,  mouseInputListener,  menuDragMouseListener,  menuKeyListener,  propertyChangeListener,  handler,  arrowIcon,  checkIcon,  oldBorderPainted
Method from javax.swing.plaf.basic.BasicMenuUI Summary:
createChangeListener,   createMenuDragMouseListener,   createMenuKeyListener,   createMenuListener,   createMouseInputListener,   createPropertyChangeListener,   createUI,   getHandler,   getMaximumSize,   getPropertyPrefix,   installDefaults,   installKeyboardActions,   installLazyActionMap,   installListeners,   loadActionMap,   setupPostTimer,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   updateMnemonicBinding
Methods from javax.swing.plaf.basic.BasicMenuItemUI:
createInputMap,   createMenuDragMouseListener,   createMenuKeyListener,   createMouseInputListener,   createPropertyChangeListener,   createUI,   doClick,   getHandler,   getMaximumSize,   getMinimumSize,   getPath,   getPreferredMenuItemSize,   getPreferredSize,   getPropertyPrefix,   installComponents,   installDefaults,   installKeyboardActions,   installLazyActionMap,   installListeners,   installUI,   loadActionMap,   paint,   paintBackground,   paintMenuItem,   paintText,   printMenuElementArray,   uninstallComponents,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI,   update,   updateAcceleratorBinding
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicMenuUI Detail:
 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) 
 public static ComponentUI createUI(JComponent x) 
 Handler getHandler() 
 public Dimension getMaximumSize(JComponent c) 
 protected String getPropertyPrefix() 
 protected  void installDefaults() 
 protected  void installKeyboardActions() 
  void installLazyActionMap() 
 protected  void installListeners() 
 static  void loadActionMap(LazyActionMap map) 
 protected  void setupPostTimer(JMenu menu) 
 protected  void uninstallDefaults() 
 protected  void uninstallKeyboardActions() 
 protected  void uninstallListeners() 
  void updateMnemonicBinding()