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 |
deregisterFilter() |
protected void |
executeTransaction(ActionPair pair) |
ActionPair |
filterAction(ActionPair pPair) |
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 |
onFocusNode(NodeView nodeView) |
void |
onLostFocusNode(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 |
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)
Fired after node is getting visible (is unfolded after having been folded).
|
void |
onViewRemovedHook(NodeView nodeView)
Fired after a node is getting invisible (folded).
|
void |
processUnfinishedLinks()
Can be used to adjust some things after a paste action.
|
void |
registerFilter() |
void |
save(XMLElement xml) |
void |
saveHtml(java.io.Writer pFileout)
Can be used to contribute to the standard html export.
|
protected void |
saveNameValuePairs(java.util.HashMap nameValuePairs,
XMLElement xml) |
protected void |
setToolTip(MindMapNode node,
java.lang.String key,
java.lang.String value) |
protected void |
setToolTip(java.lang.String key,
java.lang.String value) |
void |
shutdownMapHook()
This method is also called, if the node, this hook belongs to, is removed
from the map.
|
getMap, getNode, getNodeId, invoke, nodeChanged, setMap, setNode
getController, getName, getPluginBaseClass, getProperties, getResource, getResourceString, obtainFocusForSelected, 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 onFocusNode(NodeView nodeView)
onFocusNode
in interface PermanentNodeHook
public void onLostFocusNode(NodeView nodeView)
onLostFocusNode
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)
PermanentNodeHook
onViewCreatedHook
in interface PermanentNodeHook
public void onViewRemovedHook(NodeView nodeView)
PermanentNodeHook
onViewRemovedHook
in interface PermanentNodeHook
protected void setToolTip(java.lang.String key, java.lang.String value)
protected void setToolTip(MindMapNode node, java.lang.String key, java.lang.String value)
protected void executeTransaction(ActionPair pair) throws java.lang.InterruptedException, java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
java.lang.reflect.InvocationTargetException
public void registerFilter()
public void deregisterFilter()
public ActionPair filterAction(ActionPair pPair)
public void processUnfinishedLinks()
PermanentNodeHook
processUnfinishedLinks
in interface PermanentNodeHook
public void saveHtml(java.io.Writer pFileout) throws java.io.IOException
PermanentNodeHook
saveHtml
in interface PermanentNodeHook
java.io.IOException