|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.laf.menu.MenuItemChangeListener
public class MenuItemChangeListener
Special menu item change listener required to update popup menu decoration properly.
Field Summary | |
---|---|
protected javax.swing.JMenuItem |
menuItem
Listened menu item. |
Constructor Summary | |
---|---|
MenuItemChangeListener(javax.swing.JMenuItem menuItem)
Constructs new menu item change listener. |
Method Summary | |
---|---|
static MenuItemChangeListener |
install(javax.swing.JMenuItem menuItem)
Installs menu item model change listener and returns it. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
static void |
uninstall(MenuItemChangeListener listener,
javax.swing.JMenuItem menuItem)
Uninstalls menu item model change listener from specified menu item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JMenuItem menuItem
Constructor Detail |
---|
public MenuItemChangeListener(javax.swing.JMenuItem menuItem)
menuItem
- menu item to listenMethod Detail |
---|
public static MenuItemChangeListener install(javax.swing.JMenuItem menuItem)
menuItem
- menu item to install listener into
public static void uninstall(MenuItemChangeListener listener, javax.swing.JMenuItem menuItem)
listener
- listener to uninstallmenuItem
- menu item to uninstall listener frompublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |