freemind.extensions
Class PermanentNodeHookAdapter

java.lang.Object
  extended by freemind.extensions.HookAdapter
      extended by freemind.extensions.NodeHookAdapter
          extended by freemind.extensions.PermanentNodeHookAdapter
All Implemented Interfaces:
MindMapHook, NodeHook, PermanentNodeHook
Direct Known Subclasses:
PermanentMindMapNodeHookAdapter, PermanentNodeHookSubstituteUnknown, ReminderHookBase

public class PermanentNodeHookAdapter
extends NodeHookAdapter
implements PermanentNodeHook

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface freemind.extensions.MindMapHook
MindMapHook.PluginBaseClassSearcher
 
Field Summary
static java.lang.String PARAMETERS
           
 
Fields inherited from class freemind.extensions.HookAdapter
logger
 
Constructor Summary
PermanentNodeHookAdapter()
           
 
Method Summary
 void loadFrom(XMLElement child)
           
protected  java.util.HashMap loadNameValuePairs(XMLElement xml)
           
 void onAddChild(MindMapNode newChildNode)
          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 onDeselectHook(NodeView nodeView)
           
 void onNewChild(MindMapNode newChildNode)
          Is only called, if a new nodes is inserted as a child.
 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 onSelectHook(NodeView nodeView)
           
 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 onViewCreatedHook(NodeView nodeView)
           
 void onViewRemovedHook(NodeView nodeView)
           
 void save(XMLElement xml)
           
protected  void saveNameValuePairs(java.util.HashMap nameValuePairs, XMLElement xml)
           
 void shutdownMapHook()
          This method is also called, if the node, this hook belongs to, is removed from the map.
 
Methods inherited from class freemind.extensions.NodeHookAdapter
getMap, getNode, invoke, nodeChanged, setMap, setNode
 
Methods inherited from class freemind.extensions.HookAdapter
getController, getName, getPluginBaseClass, getProperties, getResource, getResourceString, setController, setName, setPluginBaseClass, setProperties, startupMapHook
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface freemind.extensions.NodeHook
invoke, setMap, setNode
 
Methods inherited from interface freemind.extensions.MindMapHook
getName, getPluginBaseClass, getResourceString, setController, setName, setPluginBaseClass, setProperties, startupMapHook
 

Field Detail

PARAMETERS

public static final java.lang.String PARAMETERS
See Also:
Constant Field Values
Constructor Detail

PermanentNodeHookAdapter

public PermanentNodeHookAdapter()
Method Detail

shutdownMapHook

public void shutdownMapHook()
Description copied from interface: MindMapHook
This method is also called, if the node, this hook belongs to, is removed from the map.

Specified by:
shutdownMapHook in interface MindMapHook
Overrides:
shutdownMapHook in class HookAdapter

onUpdateNodeHook

public void onUpdateNodeHook()
Description copied from interface: PermanentNodeHook
If the node I belong to is changed, I get this notification.

Specified by:
onUpdateNodeHook in interface PermanentNodeHook

onUpdateChildrenHook

public void onUpdateChildrenHook(MindMapNode updatedNode)
Description copied from interface: PermanentNodeHook
If any of my children is updated, I get this notification.

Specified by:
onUpdateChildrenHook in interface PermanentNodeHook

onAddChild

public void onAddChild(MindMapNode newChildNode)
Description copied from interface: PermanentNodeHook
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, ... see onNewChild

Specified by:
onAddChild in interface PermanentNodeHook

onNewChild

public void onNewChild(MindMapNode newChildNode)
Description copied from interface: PermanentNodeHook
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. see onAddChild.

Specified by:
onNewChild in interface PermanentNodeHook

onRemoveChild

public void onRemoveChild(MindMapNode oldChildNode)
Specified by:
onRemoveChild in interface PermanentNodeHook

save

public void save(XMLElement xml)
Specified by:
save in interface PermanentNodeHook

loadFrom

public void loadFrom(XMLElement child)
Specified by:
loadFrom in interface PermanentNodeHook

onSelectHook

public void onSelectHook(NodeView nodeView)
Specified by:
onSelectHook in interface PermanentNodeHook

onDeselectHook

public void onDeselectHook(NodeView nodeView)
Specified by:
onDeselectHook in interface PermanentNodeHook

onAddChildren

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

Specified by:
onAddChildren in interface PermanentNodeHook

loadNameValuePairs

protected java.util.HashMap loadNameValuePairs(XMLElement xml)

saveNameValuePairs

protected void saveNameValuePairs(java.util.HashMap nameValuePairs,
                                  XMLElement xml)

onRemoveChildren

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

Specified by:
onRemoveChildren in interface PermanentNodeHook
oldDad - TODO

onViewCreatedHook

public void onViewCreatedHook(NodeView nodeView)
Specified by:
onViewCreatedHook in interface PermanentNodeHook

onViewRemovedHook

public void onViewRemovedHook(NodeView nodeView)
Specified by:
onViewRemovedHook in interface PermanentNodeHook