public class ActionsMenuCreator.MutableActionListener
extends java.lang.Object
implements java.beans.PropertyChangeListener
Constructor and Description |
---|
MutableActionListener(java.awt.Container menu,
ActionsCategory category,
java.util.WeakHashMap<NMAction,java.lang.ref.WeakReference<?>> created) |
Modifier and Type | Method and Description |
---|---|
void |
propertyChange(java.beans.PropertyChangeEvent e)
Handles ActionsCategory.CHANGE_ACTIONS_PROPERTY and recreates
Menu items.
|
MutableActionListener(java.awt.Container menu, ActionsCategory category, java.util.WeakHashMap<NMAction,java.lang.ref.WeakReference<?>> created)
menu
- menu where new actions will be appended, old will be removed.category
- parent of actions will be removed/added.created
- a list of created items from given category