freemind.extensions
Class PermanentNodeHookAdapter
java.lang.Object
freemind.extensions.HookAdapter
freemind.extensions.NodeHookAdapter
freemind.extensions.PermanentNodeHookAdapter
- All Implemented Interfaces:
- MindMapHook, NodeHook, PermanentNodeHook
- Direct Known Subclasses:
- PermanentNodeHookSubstituteUnknown
- 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
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 |
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. |
protected PermanentNodeHook |
propagate(MindMapNode child)
|
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.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 |
PARAMETERS
public static final java.lang.String PARAMETERS
- See Also:
- Constant Field Values
PermanentNodeHookAdapter
public PermanentNodeHookAdapter()
propagate
protected PermanentNodeHook propagate(MindMapNode child)
- Parameters:
child
- the child node the hook should be propagated to.
- Returns:
- returns the new hook or null if there is already such a hook.
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
onMouseOverHook
public void onMouseOverHook()
- Specified by:
onMouseOverHook
in interface PermanentNodeHook
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, ...
- Specified by:
onAddChild
in interface PermanentNodeHook
- Parameters:
newChildNode
- - See Also:
onNewChild
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.
- Specified by:
onNewChild
in interface PermanentNodeHook
- Parameters:
newChildNode
- - See Also:
onAddChild.
onRemoveChild
public void onRemoveChild(MindMapNode oldChildNode)
- Specified by:
onRemoveChild
in interface PermanentNodeHook
save
public void save(XMLElement xml)
- Specified by:
save
in interface PermanentNodeHook
- Parameters:
xml
-
loadFrom
public void loadFrom(XMLElement child)
- Specified by:
loadFrom
in interface PermanentNodeHook
- Parameters:
child
-
onReceiveFocusHook
public void onReceiveFocusHook()
- Specified by:
onReceiveFocusHook
in interface PermanentNodeHook
onLooseFocusHook
public void onLooseFocusHook()
- Specified by:
onLooseFocusHook
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
- Parameters:
addedChild
-
loadNameValuePairs
protected java.util.HashMap loadNameValuePairs(XMLElement xml)
saveNameValuePairs
protected void saveNameValuePairs(java.util.HashMap nameValuePairs,
XMLElement xml)
- Parameters:
nameValuePairs
- 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
- Parameters:
oldChildNode
- oldDad
- TODO