Uses of Interface
javax.swing.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
Modifier and TypeClassDescriptionclass
A menu item that can be selected or deselected.class
An implementation of a menu -- a popup window containingJMenuItem
s that is displayed when the user selects an item on theJMenuBar
.class
An implementation of a menu bar.class
An implementation of an item in a menu.class
An implementation of a popup menu -- a small window that pops up and displays a series of choices.class
An implementation of a radio button menu item.Modifier and TypeMethodDescriptionMenuSelectionManager.getSelectedPath()
Returns the path to the currently selected menu itemJMenu.getSubElements()
Returns an array ofMenuElement
s 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 ofMenuElement
s containing the submenu for this menu component.MenuElement.getSubElements()
This method should return an array containing the sub-elements for the receiving menu element.Modifier and TypeMethodDescriptionvoid
JMenuBar.processKeyEvent
(KeyEvent e, MenuElement[] path, MenuSelectionManager manager) Implemented to be aMenuElement
-- does nothing.void
JMenuItem.processKeyEvent
(KeyEvent e, MenuElement[] path, MenuSelectionManager manager) Processes a key event forwarded from theMenuSelectionManager
and changes the menu selection, if necessary, by usingMenuSelectionManager
's API.void
JPopupMenu.processKeyEvent
(KeyEvent e, MenuElement[] path, MenuSelectionManager manager) Processes a key event forwarded from theMenuSelectionManager
and changes the menu selection, if necessary, by usingMenuSelectionManager
's API.void
MenuElement.processKeyEvent
(KeyEvent event, MenuElement[] path, MenuSelectionManager manager) Process a key event.void
JMenuBar.processMouseEvent
(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) Implemented to be aMenuElement
-- does nothing.void
JMenuItem.processMouseEvent
(MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Processes a mouse event forwarded from theMenuSelectionManager
and changes the menu selection, if necessary, by using theMenuSelectionManager
's API.void
JPopupMenu.processMouseEvent
(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) This method is required to conform to theMenuElement
interface, but it not implemented.void
MenuElement.processMouseEvent
(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) Processes a mouse event.void
MenuSelectionManager.setSelectedPath
(MenuElement[] path) Changes the selection in the menu hierarchy. -
Uses of MenuElement in javax.swing.event
Modifier and TypeMethodDescriptionMenuDragMouseEvent.getPath()
Returns the path to the selected menu item.MenuKeyEvent.getPath()
Returns the path to the menu item referenced by this event.ModifierConstructorDescriptionMenuDragMouseEvent
(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
Modifier and TypeClassDescriptionclass
This is a basic implementation of theComboPopup
interface.class
This class should be treated as a "protected" inner class.Modifier and TypeMethodDescriptionvoid
BasicCheckBoxMenuItemUI.processMouseEvent
(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Invoked when mouse event occurs.void
BasicRadioButtonMenuItemUI.processMouseEvent
(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Invoked when mouse event occurs. -
Uses of MenuElement in javax.swing.plaf.metal
Modifier and TypeClassDescriptionclass
Deprecated.As of Java 2 platform v1.4.