freemind.extensions
Interface PermanentNodeHook

All Superinterfaces:
MindMapHook, NodeHook
All Known Implementing Classes:
PermanentNodeHookAdapter

public interface PermanentNodeHook
extends NodeHook

Author:
foltin To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Method Summary
 void loadFrom(XMLElement child)
           
 void onAddChild(MindMapNode addedChildNode)
          Is called if the addedChildNode is inserted as a direct child of the node, this hook is attached to.
 void onAddChildren(MindMapNode addedChild)
          This method is called, if a child is added to me or to any of my children.
 void onLooseFocusHook()
           
 void onMouseOverHook()
           
 void onNewChild(MindMapNode newChildNode)
          Is only called, if a new nodes is inserted as a child.
 void onReceiveFocusHook()
           
 void onRemoveChild(MindMapNode oldChildNode)
           
 void onRemoveChildren(MindMapNode oldChildNode, MindMapNode oldDad)
          This method is called, if a child is removed to me or to any of my children.
 void onUpdateChildrenHook(MindMapNode updatedNode)
          If any of my children is updated, I get this notification.
 void onUpdateNodeHook()
          If the node I belong to is changed, I get this notification.
 void save(XMLElement hookElement)
           
 
Methods inherited from interface freemind.extensions.NodeHook
invoke, setMap, setNode
 
Methods inherited from interface freemind.extensions.MindMapHook
getName, getPluginBaseClass, getResourceString, setController, setName, setPluginBaseClass, setProperties, shutdownMapHook, startupMapHook
 

Method Detail

onReceiveFocusHook

public void onReceiveFocusHook()

onMouseOverHook

public void onMouseOverHook()

onUpdateNodeHook

public void onUpdateNodeHook()
If the node I belong to is changed, I get this notification.


onAddChild

public void onAddChild(MindMapNode addedChildNode)
Is called if the addedChildNode is inserted as a direct child of the node, this hook is attached to. The cases in which this method is called contain new nodes, paste, move, etc. Ah, don't call propagate in this method, as paste introduces nodes with the hook and you'll have them twice, ...

Parameters:
addedChildNode -
See Also:
onNewChild

onNewChild

public void onNewChild(MindMapNode newChildNode)
Is only called, if a new nodes is inserted as a child. Remark: In this case onAddChild is called too and moreover *before* this method.

Parameters:
newChildNode -
See Also:
onAddChild.

onAddChildren

public void onAddChildren(MindMapNode addedChild)
This method is called, if a child is added to me or to any of my children. (See onUpdateChildrenHook)

Parameters:
addedChild -

onRemoveChild

public void onRemoveChild(MindMapNode oldChildNode)

onRemoveChildren

public void onRemoveChildren(MindMapNode oldChildNode,
                             MindMapNode oldDad)
This method is called, if a child is removed to me or to any of my children. (See onUpdateChildrenHook)

Parameters:
oldChildNode -
oldDad - TODO

onUpdateChildrenHook

public void onUpdateChildrenHook(MindMapNode updatedNode)
If any of my children is updated, I get this notification.


save

public void save(XMLElement hookElement)
Parameters:
hookElement -

loadFrom

public void loadFrom(XMLElement child)
Parameters:
child -

onLooseFocusHook

public void onLooseFocusHook()