public class BasicMenuUI.ChangeHandler extends Object implements ChangeListener
| Modifier and Type | Field and 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 and Description |
|---|
ChangeHandler(JMenu m,
BasicMenuUI ui)
Constructs a new instance of
ChangeHandler. |
| Modifier and Type | Method and 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, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait