| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class | BasicPopupMenuUI.
Handles mnemonic for children JMenuItems. |
| private static class | BasicPopupMenuUI.
This Listener fires the Action that provides the correct auditory feedback. |
| pack-priv static class | BasicPopupMenuUI.
This helper is added to MenuSelectionManager as a ChangeListener to listen to menu selection changes. |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| pack-priv static BasicPopupMenuUI. | |
| private MenuKeyListener | |
| pack-priv static BasicPopupMenuUI. | |
| protected JPopupMenu | popupMenu
The instance of |
| private transient PopupMenuListener | |
| private static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public static ComponentUI | Returns: a new instance ofBasicPopupMenuUIa component x)Hides javax. Constructs a new instance of |
| pack-priv static MenuElement | |
| pack-priv static MenuElement | |
| pack-priv static ActionMap | |
| pack-priv static MenuElement | |
| pack-priv static InputMap | |
| pack-priv static JPopupMenu | |
| pack-priv static List | |
| public void | |
| protected void | |
| protected void | |
| public void | installUI(JComponent c)
Overrides javax. Configures the specified component appropriately for the look and feel. |
| public boolean | isPopupTrigger(MouseEvent e)
Overrides javax. Returns whether or not the given |
| pack-priv static void | |
| private static MenuElement | |
| private static MenuElement | |
| protected void | |
| protected void | |
| protected void | |
| public void | uninstallUI(JComponent c)
Overrides javax. Reverses configuration which was done on the specified component during
|
| checkedUnpostPopup | back to summary |
|---|---|
| private static boolean checkedUnpostPopup | |
| menuKeyboardHelper | back to summary |
|---|---|
| pack-priv static BasicPopupMenuUI. | |
| menuKeyListener | back to summary |
|---|---|
| private MenuKeyListener menuKeyListener | |
| mouseGrabber | back to summary |
|---|---|
| pack-priv static BasicPopupMenuUI. | |
| popupMenu | back to summary |
|---|---|
| protected JPopupMenu popupMenu The instance of | |
| popupMenuListener | back to summary |
|---|---|
| private transient PopupMenuListener popupMenuListener | |
| unpostPopup | back to summary |
|---|---|
| private static boolean unpostPopup | |
| BasicPopupMenuUI | back to summary |
|---|---|
| public BasicPopupMenuUI() Constructs a new instance of | |
| checkInvokerEqual | back to summary |
|---|---|
| private static boolean checkInvokerEqual(MenuElement present, MenuElement last) | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent x) Hides javax. Constructs a new instance of
| |
| findEnabledChild | back to summary |
|---|---|
| pack-priv static MenuElement findEnabledChild(MenuElement[] e, int fromIndex, boolean forward) | |
| findEnabledChild | back to summary |
|---|---|
| pack-priv static MenuElement findEnabledChild(MenuElement[] e, MenuElement elem, boolean forward) | |
| getActionMap | back to summary |
|---|---|
| pack-priv static ActionMap getActionMap() | |
| getFirstPopup | back to summary |
|---|---|
| pack-priv static MenuElement getFirstPopup() | |
| getInputMap | back to summary |
|---|---|
| pack-priv static InputMap getInputMap(JPopupMenu popup, JComponent c) | |
| getLastPopup | back to summary |
|---|---|
| pack-priv static JPopupMenu getLastPopup() | |
| getPopups | back to summary |
|---|---|
| pack-priv static List | |
| installDefaults | back to summary |
|---|---|
| public void installDefaults() Installs default properties. | |
| installKeyboardActions | back to summary |
|---|---|
| protected void installKeyboardActions() Registers keyboard actions. | |
| installListeners | back to summary |
|---|---|
| protected void installListeners() Registers listeners. | |
| installUI | back to summary |
|---|---|
| public void installUI(JComponent c) Overrides javax. Doc from javax. Configures the specified component appropriately for the look and feel.
This method is invoked when the
| |
| isPopupTrigger | back to summary |
|---|---|
| public boolean isPopupTrigger(MouseEvent e) Overrides javax. Doc from javax. Returns whether or not the given
| |
| loadActionMap | back to summary |
|---|---|
| pack-priv static void loadActionMap(LazyActionMap map) | |
| nextEnabledChild | back to summary |
|---|---|
| private static MenuElement nextEnabledChild(MenuElement[] e, int fromIndex, int toIndex) | |
| previousEnabledChild | back to summary |
|---|---|
| private static MenuElement previousEnabledChild(MenuElement[] e, int fromIndex, int toIndex) | |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults() Uninstalls default properties. | |
| uninstallKeyboardActions | back to summary |
|---|---|
| protected void uninstallKeyboardActions() Unregisters keyboard actions. | |
| uninstallListeners | back to summary |
|---|---|
| protected void uninstallListeners() Unregisters listeners. | |
| uninstallUI | back to summary |
|---|---|
| public void uninstallUI(JComponent c) Overrides javax. Doc from javax. Reverses configuration which was done on the specified component during
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final String | |
| private static final boolean | |
| private static final boolean | |
| private static final boolean | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String |
| Modifier and Type | Method and Description |
|---|---|
| public void | actionPerformed(ActionEvent e)
Implements java. Invoked when an action occurs. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| BACKWARD | back to summary |
|---|---|
| private static final boolean BACKWARD | |
| CANCEL | back to summary |
|---|---|
| private static final String CANCEL | |
| CHILD | back to summary |
|---|---|
| private static final boolean CHILD | |
| FORWARD | back to summary |
|---|---|
| private static final boolean FORWARD | |
| PARENT | back to summary |
|---|---|
| private static final boolean PARENT | |
| RETURN | back to summary |
|---|---|
| private static final String RETURN | |
| SELECT_CHILD | back to summary |
|---|---|
| private static final String SELECT_CHILD | |
| SELECT_NEXT | back to summary |
|---|---|
| private static final String SELECT_NEXT | |
| SELECT_PARENT | back to summary |
|---|---|
| private static final String SELECT_PARENT | |
| SELECT_PREVIOUS | back to summary |
|---|---|
| private static final String SELECT_PREVIOUS | |
| Actions | back to summary |
|---|---|
| pack-priv Actions(String key) | |
| actionPerformed | back to summary |
|---|---|
| public void actionPerformed(ActionEvent e) Implements java. Doc from java. Invoked when an action occurs. | |
| cancel | back to summary |
|---|---|
| private void cancel() | |
| doReturn | back to summary |
|---|---|
| private void doReturn() | |
| selectItem | back to summary |
|---|---|
| private void selectItem(boolean direction) | |
| selectParentChild | back to summary |
|---|---|
| private void selectParentChild(boolean direction) | |
| shortenSelectedPath | back to summary |
|---|---|
| private void shortenSelectedPath() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv MenuElement |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private char | |
| private char | |
| public void | menuKeyPressed(MenuKeyEvent e)
Implements javax. Invoked when a key has been pressed. |
| public void | menuKeyReleased(MenuKeyEvent e)
Implements javax. Invoked when a key has been released. |
| public void | menuKeyTyped(MenuKeyEvent e)
Implements javax. Invoked when a key has been typed. |
| menuToOpen | back to summary |
|---|---|
| pack-priv MenuElement menuToOpen | |
| BasicMenuKeyListener | back to summary |
|---|---|
| private BasicMenuKeyListener() | |
| lower | back to summary |
|---|---|
| private char lower(char keyChar) | |
| lower | back to summary |
|---|---|
| private char lower(int mnemonic) | |
| menuKeyPressed | back to summary |
|---|---|
| public void menuKeyPressed(MenuKeyEvent e) Implements javax. Doc from javax. Invoked when a key has been pressed. | |
| menuKeyReleased | back to summary |
|---|---|
| public void menuKeyReleased(MenuKeyEvent e) Implements javax. Doc from javax. Invoked when a key has been released. | |
| menuKeyTyped | back to summary |
|---|---|
| public void menuKeyTyped(MenuKeyEvent e) Implements javax. Doc from javax. Invoked when a key has been typed. This event occurs when a key press is followed by a key release. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | popupMenuCanceled(PopupMenuEvent e)
Implements javax. This method is called when the popup menu is canceled |
| public void | popupMenuWillBecomeInvisible(PopupMenuEvent e)
Implements javax. This method is called before the popup menu becomes invisible Note that a JPopupMenu can become invisible any time |
| public void | popupMenuWillBecomeVisible(PopupMenuEvent e)
Implements javax. This method is called before the popup menu becomes visible |
| BasicPopupMenuListener | back to summary |
|---|---|
| private BasicPopupMenuListener() | |
| popupMenuCanceled | back to summary |
|---|---|
| public void popupMenuCanceled(PopupMenuEvent e) Implements javax. Doc from javax. This method is called when the popup menu is canceled | |
| popupMenuWillBecomeInvisible | back to summary |
|---|---|
| public void popupMenuWillBecomeInvisible(PopupMenuEvent e) Implements javax. Doc from javax. This method is called before the popup menu becomes invisible Note that a JPopupMenu can become invisible any time | |
| popupMenuWillBecomeVisible | back to summary |
|---|---|
| public void popupMenuWillBecomeVisible(PopupMenuEvent e) Implements javax. Doc from javax. This method is called before the popup menu becomes visible | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private JRootPane | |
| private Component | |
| private MenuElement[] | |
| private JPopupMenu | |
| private ActionMap | |
| private InputMap | |
| private boolean | |
| private FocusListener |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv JPopupMenu | |
| public void | keyPressed(KeyEvent ev)
Implements java. Invoked when a key has been pressed. |
| public void | keyReleased(KeyEvent ev)
Implements java. Invoked when a key has been released. |
| public void | keyTyped(KeyEvent ev)
Implements java. Invoked when a key has been typed. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | stateChanged(ChangeEvent ev)
Implements javax. Invoked when the target of the listener has changed its state. |
| pack-priv void |
| focusTraversalKeysEnabled | back to summary |
|---|---|
| private boolean focusTraversalKeysEnabled | |
| invokerRootPane | back to summary |
|---|---|
| private JRootPane invokerRootPane | |
| lastFocused | back to summary |
|---|---|
| private Component lastFocused | |
| lastPathSelected | back to summary |
|---|---|
| private MenuElement[] lastPathSelected | |
| lastPopup | back to summary |
|---|---|
| private JPopupMenu lastPopup | |
| menuActionMap | back to summary |
|---|---|
| private ActionMap menuActionMap | |
| menuInputMap | back to summary |
|---|---|
| private InputMap menuInputMap | |
| receivedKeyPressed | back to summary |
|---|---|
| private boolean receivedKeyPressed | |
| rootPaneFocusListener | back to summary |
|---|---|
| private FocusListener rootPaneFocusListener | |
| MenuKeyboardHelper | back to summary |
|---|---|
| pack-priv MenuKeyboardHelper() | |
| addUIActionMap | back to summary |
|---|---|
| pack-priv void addUIActionMap(JComponent c, ActionMap map) | |
| addUIInputMap | back to summary |
|---|---|
| pack-priv void addUIInputMap(JComponent c, InputMap map) | |
| getActivePopup | back to summary |
|---|---|
| pack-priv JPopupMenu getActivePopup(MenuElement[] path) Return the last JPopupMenu in | |
| keyPressed | back to summary |
|---|---|
| public void keyPressed(KeyEvent ev) Implements java. Doc from java. Invoked when a key has been pressed.
See the class description for | |
| keyReleased | back to summary |
|---|---|
| public void keyReleased(KeyEvent ev) Implements java. Doc from java. Invoked when a key has been released.
See the class description for | |
| keyTyped | back to summary |
|---|---|
| public void keyTyped(KeyEvent ev) Implements java. Doc from java. Invoked when a key has been typed.
See the class description for | |
| removeItems | back to summary |
|---|---|
| pack-priv void removeItems() | |
| removeUIActionMap | back to summary |
|---|---|
| pack-priv void removeUIActionMap(JComponent c, ActionMap map) | |
| removeUIInputMap | back to summary |
|---|---|
| pack-priv void removeUIInputMap(JComponent c, InputMap map) | |
| stateChanged | back to summary |
|---|---|
| public void stateChanged(ChangeEvent ev) Implements javax. Doc from javax. Invoked when the target of the listener has changed its state. | |
| uninstall | back to summary |
|---|---|
| pack-priv void uninstall() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Window | |
| pack-priv MenuElement[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | componentHidden(ComponentEvent e)
Implements java. Invoked when the component has been made invisible. |
| public void | componentMoved(ComponentEvent e)
Implements java. Invoked when the component's position changes. |
| public void | componentResized(ComponentEvent e)
Implements java. Invoked when the component's size changes. |
| public void | componentShown(ComponentEvent e)
Implements java. Invoked when the component has been made visible. |
| public void | eventDispatched(AWTEvent ev)
Implements java. Invoked when an event is dispatched in the AWT. |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv void | |
| public void | stateChanged(ChangeEvent e)
Implements javax. Invoked when the target of the listener has changed its state. |
| pack-priv void | |
| pack-priv void | |
| public void | windowActivated(WindowEvent e)
Implements java. Invoked when the Window is set to be the active Window. |
| public void | windowClosed(WindowEvent e)
Implements java. Invoked when a window has been closed as the result of calling dispose on the window. |
| public void | windowClosing(WindowEvent e)
Implements java. Invoked when the user attempts to close the window from the window's system menu. |
| public void | windowDeactivated(WindowEvent e)
Implements java. Invoked when a Window is no longer the active Window. |
| public void | windowDeiconified(WindowEvent e)
Implements java. Invoked when a window is changed from a minimized to a normal state. |
| public void | windowIconified(WindowEvent e)
Implements java. Invoked when a window is changed from a normal to a minimized state. |
| public void | windowOpened(WindowEvent e)
Implements java. Invoked the first time a window is made visible. |
| grabbedWindow | back to summary |
|---|---|
| pack-priv Window grabbedWindow | |
| lastPathSelected | back to summary |
|---|---|
| pack-priv MenuElement[] lastPathSelected | |
| MouseGrabber | back to summary |
|---|---|
| public MouseGrabber() | |
| cancelPopupMenu | back to summary |
|---|---|
| pack-priv void cancelPopupMenu() | |
| componentHidden | back to summary |
|---|---|
| public void componentHidden(ComponentEvent e) Implements java. Doc from java. Invoked when the component has been made invisible. | |
| componentMoved | back to summary |
|---|---|
| public void componentMoved(ComponentEvent e) Implements java. Doc from java. Invoked when the component's position changes. | |
| componentResized | back to summary |
|---|---|
| public void componentResized(ComponentEvent e) Implements java. Doc from java. Invoked when the component's size changes. | |
| componentShown | back to summary |
|---|---|
| public void componentShown(ComponentEvent e) Implements java. Doc from java. Invoked when the component has been made visible. | |
| eventDispatched | back to summary |
|---|---|
| public void eventDispatched(AWTEvent ev) Implements java. Doc from java. Invoked when an event is dispatched in the AWT. | |
| grabWindow | back to summary |
|---|---|
| pack-priv void grabWindow(MenuElement[] newPath) | |
| isInPopup | back to summary |
|---|---|
| pack-priv boolean isInPopup(Component src) | |
| realUngrabWindow | back to summary |
|---|---|
| pack-priv void realUngrabWindow() | |
| stateChanged | back to summary |
|---|---|
| public void stateChanged(ChangeEvent e) Implements javax. Doc from javax. Invoked when the target of the listener has changed its state. | |
| ungrabWindow | back to summary |
|---|---|
| pack-priv void ungrabWindow() | |
| uninstall | back to summary |
|---|---|
| pack-priv void uninstall() | |
| windowActivated | back to summary |
|---|---|
| public void windowActivated(WindowEvent e) Implements java. Doc from java. Invoked when the Window is set to be the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window. | |
| windowClosed | back to summary |
|---|---|
| public void windowClosed(WindowEvent e) Implements java. Doc from java. Invoked when a window has been closed as the result of calling dispose on the window. | |
| windowClosing | back to summary |
|---|---|
| public void windowClosing(WindowEvent e) Implements java. Doc from java. Invoked when the user attempts to close the window from the window's system menu. | |
| windowDeactivated | back to summary |
|---|---|
| public void windowDeactivated(WindowEvent e) Implements java. Doc from java. Invoked when a Window is no longer the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window. | |
| windowDeiconified | back to summary |
|---|---|
| public void windowDeiconified(WindowEvent e) Implements java. Doc from java. Invoked when a window is changed from a minimized to a normal state. | |
| windowIconified | back to summary |
|---|---|
| public void windowIconified(WindowEvent e) Implements java. Doc from java. Invoked when a window is changed from a normal to a minimized state. For many platforms, a minimized window is displayed as the icon specified in the window's iconImage property. | |
| windowOpened | back to summary |
|---|---|
| public void windowOpened(WindowEvent e) Implements java. Doc from java. Invoked the first time a window is made visible. | |