public class HookAdapter extends java.lang.Object implements MindMapHook
MindMapHook.PluginBaseClassSearcher| Modifier and Type | Field and Description |
|---|---|
protected java.util.logging.Logger |
logger |
| Constructor and Description |
|---|
HookAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected ModeController |
getController() |
java.lang.String |
getName() |
java.lang.Object |
getPluginBaseClass()
If a base class is specified in the plugin declaration
via a plugin_registration entry with isPluginBase==true,
this object is returned here.
|
protected java.util.Properties |
getProperties() |
java.net.URL |
getResource(java.lang.String resourceName) |
java.lang.String |
getResourceString(java.lang.String property)
looks for a property in the plugin properties file.
|
void |
setController(ModeController controller) |
void |
setName(java.lang.String name) |
void |
setPluginBaseClass(MindMapHook.PluginBaseClassSearcher baseClass) |
void |
setProperties(java.util.Properties properties) |
void |
shutdownMapHook()
This method is also called, if the node, this hook belongs to, is removed from the map.
|
void |
startupMapHook()
This method is also called, if the hook is created in the map.
|
public java.lang.String getName()
getName in interface MindMapHookpublic void setName(java.lang.String name)
setName in interface MindMapHookpublic void startupMapHook()
MindMapHookstartupMapHook in interface MindMapHookpublic void shutdownMapHook()
MindMapHookshutdownMapHook in interface MindMapHookprotected ModeController getController()
protected java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
setProperties in interface MindMapHookproperties - the properties of the property file belonging to the hook are passed.public void setController(ModeController controller)
setController in interface MindMapHookpublic java.lang.String getResourceString(java.lang.String property)
MindMapHookgetResourceString in interface MindMapHookpublic java.net.URL getResource(java.lang.String resourceName)
public java.lang.Object getPluginBaseClass()
MindMapHookgetPluginBaseClass in interface MindMapHookpublic void setPluginBaseClass(MindMapHook.PluginBaseClassSearcher baseClass)
setPluginBaseClass in interface MindMapHook