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.PropertyChangeListenerListener 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.RunnablecleanLayoutMetricsRunnableRunnable instance to clean the layout metrics.private javax.swing.JMenuItemmenuItemAssociated 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 voidinstall()Installs the property change listener on the associated menu item.voidpropertyChange(java.beans.PropertyChangeEvent evt)voiduninstall()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:
propertyChangein interfacejava.beans.PropertyChangeListener
-
-