Uses of Interface
javax.swing.MenuElement
Packages that use MenuElement
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides for events fired by Swing components.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
-
Uses of MenuElement in javax.swing
Classes in javax.swing that implement MenuElementModifier and TypeClassDescriptionclassA menu item that can be selected or deselected.classAn implementation of a menu -- a popup window containingJMenuItems that is displayed when the user selects an item on theJMenuBar.classAn implementation of a menu bar.classAn implementation of an item in a menu.classAn implementation of a popup menu -- a small window that pops up and displays a series of choices.classAn implementation of a radio button menu item.Methods in javax.swing that return MenuElementModifier and TypeMethodDescriptionMenuSelectionManager.getSelectedPath()Returns the path to the currently selected menu itemJMenu.getSubElements()Returns an array ofMenuElements containing the submenu for this menu component.JMenuBar.getSubElements()Implemented to be aMenuElement-- returns the menus in this menu bar.JMenuItem.getSubElements()This method returns an array containing the sub-menu components for this menu component.JPopupMenu.getSubElements()Returns an array ofMenuElements containing the submenu for this menu component.MenuElement.getSubElements()This method should return an array containing the sub-elements for the receiving menu element.Methods in javax.swing with parameters of type MenuElementModifier and TypeMethodDescriptionvoidJMenuBar.processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager) Implemented to be aMenuElement-- does nothing.voidJMenuItem.processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager) Processes a key event forwarded from theMenuSelectionManagerand changes the menu selection, if necessary, by usingMenuSelectionManager's API.voidJPopupMenu.processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager) Processes a key event forwarded from theMenuSelectionManagerand changes the menu selection, if necessary, by usingMenuSelectionManager's API.voidMenuElement.processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager) Process a key event.voidJMenuBar.processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) Implemented to be aMenuElement-- does nothing.voidJMenuItem.processMouseEvent(MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Processes a mouse event forwarded from theMenuSelectionManagerand changes the menu selection, if necessary, by using theMenuSelectionManager's API.voidJPopupMenu.processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) This method is required to conform to theMenuElementinterface, but it not implemented.voidMenuElement.processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) Processes a mouse event.voidMenuSelectionManager.setSelectedPath(MenuElement[] path) Changes the selection in the menu hierarchy. -
Uses of MenuElement in javax.swing.event
Methods in javax.swing.event that return MenuElementModifier and TypeMethodDescriptionMenuDragMouseEvent.getPath()Returns the path to the selected menu item.MenuKeyEvent.getPath()Returns the path to the menu item referenced by this event.Constructors in javax.swing.event with parameters of type MenuElementModifierConstructorDescriptionMenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m) Constructs a MenuDragMouseEvent object.MenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m) Constructs a MenuDragMouseEvent object.MenuKeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, MenuElement[] p, MenuSelectionManager m) Constructs a MenuKeyEvent object. -
Uses of MenuElement in javax.swing.plaf.basic
Classes in javax.swing.plaf.basic that implement MenuElementModifier and TypeClassDescriptionclassThis is a basic implementation of theComboPopupinterface.classThis class should be treated as a "protected" inner class.Methods in javax.swing.plaf.basic that return MenuElementMethods in javax.swing.plaf.basic with parameters of type MenuElementModifier and TypeMethodDescriptionvoidBasicCheckBoxMenuItemUI.processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Invoked when mouse event occurs.voidBasicRadioButtonMenuItemUI.processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Invoked when mouse event occurs. -
Uses of MenuElement in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal that implement MenuElementModifier and TypeClassDescriptionclassDeprecated.As of Java 2 platform v1.4.