Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-209 (Final Approval Ballot)

Uses of Interface
javax.swing.MenuElement

Packages that use MenuElement
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.event Provides for events fired by Swing components. 
 

Uses of MenuElement in javax.swing
 

Classes in javax.swing that implement MenuElement
 class JCheckBoxMenuItem
          A menu item that can be selected or deselected.
 class JMenu
          An implementation of a menu -- a popup window containing JMenuItems that is displayed when the user selects an item on the JMenuBar.
 class JMenuBar
          An implementation of a menu bar.
 class JMenuItem
          An implementation of an item in a menu.
 class JPopupMenu
          An implementation of a popup menu -- a small window that pops up and displays a series of choices.
 class JRadioButtonMenuItem
          An implementation of a radio button menu item.
 

Methods in javax.swing that return MenuElement
 MenuElement[] MenuSelectionManager.getSelectedPath()
          Returns the path to the currently selected menu item
 MenuElement[] MenuElement.getSubElements()
          This method should return an array containing the sub-elements for the receiving menu element
 MenuElement[] JPopupMenu.getSubElements()
          Returns an array of MenuElements containing the submenu for this menu component.
 MenuElement[] JMenuItem.getSubElements()
          This method returns an array containing the sub-menu components for this menu component.
 MenuElement[] JMenu.getSubElements()
          Returns an array of MenuElements containing the submenu for this menu component.
 MenuElement[] JMenuBar.getSubElements()
          Implemented to be a MenuElement -- returns the menus in this menu bar.
 

Methods in javax.swing with parameters of type MenuElement
 void MenuSelectionManager.setSelectedPath(MenuElement[] path)
          Change the selection in the menu hierarchy.
 void MenuElement.processMouseEvent(java.awt.event.MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
          Process a mouse event.
 void MenuElement.processKeyEvent(java.awt.event.KeyEvent event, MenuElement[] path, MenuSelectionManager manager)
          Process a key event.
 void JPopupMenu.processMouseEvent(java.awt.event.MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
          This method is required to conform to the MenuElement interface, but it not implemented.
 void JPopupMenu.processKeyEvent(java.awt.event.KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
          This method is required to conform to the MenuElement interface, but it not implemented.
 void JMenuItem.processMouseEvent(java.awt.event.MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
          Processes a mouse event forwarded from the MenuSelectionManager and changes the menu selection, if necessary, by using the MenuSelectionManager's API.
 void JMenuItem.processKeyEvent(java.awt.event.KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
          Processes a key event forwarded from the MenuSelectionManager and changes the menu selection, if necessary, by using MenuSelectionManager's API.
 void JMenuBar.processMouseEvent(java.awt.event.MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
          Implemented to be a MenuElement -- does nothing.
 void JMenuBar.processKeyEvent(java.awt.event.KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
          Implemented to be a MenuElement -- does nothing.
 

Uses of MenuElement in javax.swing.event
 

Methods in javax.swing.event that return MenuElement
 MenuElement[] MenuKeyEvent.getPath()
          Returns the path to the menu item referenced by this event.
 MenuElement[] MenuDragMouseEvent.getPath()
          Returns the path to the selected menu item.
 

Constructors in javax.swing.event with parameters of type MenuElement
MenuKeyEvent(java.awt.Component source, int id, long when, int modifiers, int keyCode, char keyChar, MenuElement[] p, MenuSelectionManager m)
          Constructs a MenuKeyEvent object.
MenuDragMouseEvent(java.awt.Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m)
          Constructs a MenuDragMouseEvent object.
 


JSR-209 (Final Approval Ballot)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 209 specification.