Class MenuUtilities.MenuPropertyListener
- java.lang.Object
-
- org.pushingpixels.substance.internal.utils.menu.MenuUtilities.MenuPropertyListener
-
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
- Enclosing class:
- MenuUtilities
public static class MenuUtilities.MenuPropertyListener extends Object implements 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.
-
-
Constructor Summary
Constructors Constructor Description MenuPropertyListener(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(PropertyChangeEvent evt)
void
uninstall()
Uninstalls the property change listener from the associated menu item.
-
-
-
Constructor Detail
-
MenuPropertyListener
public MenuPropertyListener(JMenuItem menuItem)
Creates a new listener.- Parameters:
menuItem
- 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(PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
-