Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
public class: BasicPopupMenuUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.PopupMenuUI
         javax.swing.plaf.basic.BasicPopupMenuUI

Direct Known Subclasses:
    SynthPopupMenuUI

A Windows L&F implementation of PopupMenuUI. This implementation is a "combined" view/controller.
Nested Class Summary:
static class  BasicPopupMenuUI.MouseGrabber   
static class  BasicPopupMenuUI.MenuKeyboardHelper  This helper is added to MenuSelectionManager as a ChangeListener to listen to menu selection changes. When a menu is activated, it passes focus to its parent JRootPane, and installs an ActionMap/InputMap pair on that JRootPane. Those maps are necessary in order for menu navigation to work. When menu is being deactivated, it restores focus to the component that has had it before menu activation, and uninstalls the maps. This helper is also installed as a KeyListener on root pane when menu is active. It forwards key events to MenuSelectionManager for mnemonic keys handling. 
Field Summary
static final  StringBuilder MOUSE_GRABBER_KEY     
static final  StringBuilder MENU_KEYBOARD_HELPER_KEY     
protected  JPopupMenu popupMenu     
Constructor:
 public BasicPopupMenuUI() 
Method from javax.swing.plaf.basic.BasicPopupMenuUI Summary:
createUI,   findEnabledChild,   findEnabledChild,   getActionMap,   getFirstPopup,   getInputMap,   getLastPopup,   getPopups,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   isPopupTrigger,   loadActionMap,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI
Methods from javax.swing.plaf.PopupMenuUI:
getPopup,   isPopupTrigger
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.BasicPopupMenuUI Detail:
 public static ComponentUI createUI(JComponent x) 
 static MenuElement findEnabledChild(MenuElement[] e,
    int fromIndex,
    boolean forward) 
 static MenuElement findEnabledChild(MenuElement[] e,
    MenuElement elem,
    boolean forward) 
 static ActionMap getActionMap() 
 static MenuElement getFirstPopup() 
 static InputMap getInputMap(JPopupMenu popup,
    JComponent c) 
 static JPopupMenu getLastPopup() 
 static List<JPopupMenu> getPopups() 
 public  void installDefaults() 
 protected  void installKeyboardActions() 
 protected  void installListeners() 
 public  void installUI(JComponent c) 
 public boolean isPopupTrigger(MouseEvent e) 
 static  void loadActionMap(LazyActionMap map) 
 protected  void uninstallDefaults() 
 protected  void uninstallKeyboardActions() 
 protected  void uninstallListeners() 
 public  void uninstallUI(JComponent c)