freemind.modes.mindmapmode.actions
Class NodeHookAction
java.lang.Object
javax.swing.AbstractAction
freemind.modes.mindmapmode.actions.FreemindAction
freemind.modes.mindmapmode.actions.NodeHookAction
- All Implemented Interfaces:
- MenuItemEnabledListener, MenuItemSelectedListener, HookAction, ActorXml, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class NodeHookAction
- extends FreemindAction
- implements HookAction, ActorXml, MenuItemEnabledListener, MenuItemSelectedListener
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeHookAction
public NodeHookAction(java.lang.String hookName,
MindMapController controller)
getController
public MindMapController getController()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent arg0)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
addHook
public void addHook(MindMapNode focussed,
java.util.List selecteds,
java.lang.String hookName)
invoke
public void invoke(MindMapNode focussed,
java.util.List selecteds)
isEnabled
public boolean isEnabled(javax.swing.JMenuItem item,
javax.swing.Action action)
- Specified by:
isEnabled
in interface MenuItemEnabledListener
createHookNodeAction
public freemind.controller.actions.generated.instance.HookNodeAction createHookNodeAction(MindMapNode focussed,
java.util.List selecteds,
java.lang.String hookName)
act
public void act(freemind.controller.actions.generated.instance.XmlAction action)
- Specified by:
act
in interface ActorXml
getDoActionClass
public java.lang.Class getDoActionClass()
- Specified by:
getDoActionClass
in interface ActorXml
getHookName
public java.lang.String getHookName()
- Specified by:
getHookName
in interface HookAction
isSelected
public boolean isSelected(javax.swing.JMenuItem pCheckItem,
javax.swing.Action pAction)
- Specified by:
isSelected
in interface MenuItemSelectedListener