EventListener, ChangeListenerpublic class BasicMenuUI.ChangeHandler extends Object implements ChangeListener
| Modifier and Type | Field | Description |
|---|---|---|
boolean |
isSelected |
true if an item of popup menu is selected. |
JMenu |
menu |
The instance of
JMenu. |
BasicMenuUI |
ui |
The instance of
BasicMenuUI. |
Component |
wasFocused |
The component that was focused.
|
| Constructor | Description |
|---|---|
ChangeHandler(JMenu m,
BasicMenuUI ui) |
Constructs a new instance of
ChangeHandler. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
stateChanged(ChangeEvent e) |
Invoked when the target of the listener has changed its state.
|
public JMenu menu
JMenu.public BasicMenuUI ui
BasicMenuUI.public boolean isSelected
true if an item of popup menu is selected.public Component wasFocused
public ChangeHandler(JMenu m, BasicMenuUI ui)
ChangeHandler.m - an instance of JMenuui - an instance of BasicMenuUIpublic void stateChanged(ChangeEvent e)
ChangeListenerstateChanged in interface ChangeListenere - a ChangeEvent object Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2