Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jvnet.substance.utils.menu
Class MenuUtilities.MenuPropertyListener

    java.lang.Object
      org.jvnet.substance.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.

Author:
  Kirill Grouchnikov

Constructor Summary
`MenuUtilities.MenuPropertyListener(javax.swing.JMenuItem menuItem)` Creates a new listener.

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MenuUtilities.MenuPropertyListener

    public MenuUtilities.MenuPropertyListener(javax.swing.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(java.beans.PropertyChangeEvent evt)

  Specified by:
    `propertyChange` in interface `java.beans.PropertyChangeListener`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD