Class MenuUtilities.MenuPropertyListener
- java.lang.Object
-
- org.pushingpixels.radiance.theming.internal.utils.menu.MenuUtilities.MenuPropertyListener
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
- Enclosing class:
- MenuUtilities
public static class MenuUtilities.MenuPropertyListener extends java.lang.Object implements java.beans.PropertyChangeListener
Listener to track changes in the menu items. Once any property has been changed, the popup layout metrics on the menu item and its parent popup menu are cleared.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Runnable
cleanLayoutMetricsRunnable
Runnable instance to clean the layout metrics.private javax.swing.JMenuItem
menuItem
Associated menu item.
-
Constructor Summary
Constructors Constructor Description MenuPropertyListener(javax.swing.JMenuItem menuItem)
Creates a new listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
install()
Installs the property change listener on the associated menu item.void
propertyChange(java.beans.PropertyChangeEvent evt)
void
uninstall()
Uninstalls the property change listener from the associated menu item.
-
-
-
Method Detail
-
install
public void install()
Installs the property change listener on the associated menu item.
-
uninstall
public void uninstall()
Uninstalls the property change listener from the associated menu item.
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
-