public class PermanentNodeHookAdapter extends NodeHookAdapter implements PermanentNodeHook
MindMapHook.PluginBaseClassSearcher
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAMETERS |
logger
Constructor and Description |
---|
PermanentNodeHookAdapter() |
Modifier and Type | Method and Description |
---|---|
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.
|
getMap, getNode, invoke, nodeChanged, setMap, setNode
getController, getName, getPluginBaseClass, getProperties, getResource, getResourceString, setController, setName, setPluginBaseClass, setProperties, startupMapHook
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getPluginBaseClass, getResourceString, setController, setName, setPluginBaseClass, setProperties, startupMapHook
public static final java.lang.String PARAMETERS
public void shutdownMapHook()
MindMapHook
shutdownMapHook
in interface MindMapHook
shutdownMapHook
in class HookAdapter
public void onUpdateNodeHook()
PermanentNodeHook
onUpdateNodeHook
in interface PermanentNodeHook
public void onUpdateChildrenHook(MindMapNode updatedNode)
PermanentNodeHook
onUpdateChildrenHook
in interface PermanentNodeHook
public void onAddChild(MindMapNode newChildNode)
PermanentNodeHook
onAddChild
in interface PermanentNodeHook
public void onNewChild(MindMapNode newChildNode)
PermanentNodeHook
onNewChild
in interface PermanentNodeHook
public void onRemoveChild(MindMapNode oldChildNode)
onRemoveChild
in interface PermanentNodeHook
public void save(XMLElement xml)
save
in interface PermanentNodeHook
public void loadFrom(XMLElement child)
loadFrom
in interface PermanentNodeHook
public void onSelectHook(NodeView nodeView)
onSelectHook
in interface PermanentNodeHook
public void onDeselectHook(NodeView nodeView)
onDeselectHook
in interface PermanentNodeHook
public void onAddChildren(MindMapNode addedChild)
PermanentNodeHook
onAddChildren
in interface PermanentNodeHook
protected java.util.HashMap loadNameValuePairs(XMLElement xml)
protected void saveNameValuePairs(java.util.HashMap nameValuePairs, XMLElement xml)
public void onRemoveChildren(MindMapNode oldChildNode, MindMapNode oldDad)
PermanentNodeHook
onRemoveChildren
in interface PermanentNodeHook
oldDad
- TODOpublic void onViewCreatedHook(NodeView nodeView)
onViewCreatedHook
in interface PermanentNodeHook
public void onViewRemovedHook(NodeView nodeView)
onViewRemovedHook
in interface PermanentNodeHook