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, or from the localized ressources.
|
protected void |
obtainFocusForSelected()
After tree node change, the focus must be obtained as it is invalid.
|
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 MindMapHook
public void setName(java.lang.String name)
setName
in interface MindMapHook
public void startupMapHook()
MindMapHook
startupMapHook
in interface MindMapHook
public void shutdownMapHook()
MindMapHook
shutdownMapHook
in interface MindMapHook
protected ModeController getController()
protected java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
setProperties
in interface MindMapHook
properties
- the properties of the property file belonging to the hook are
passed.public void setController(ModeController controller)
setController
in interface MindMapHook
public java.lang.String getResourceString(java.lang.String property)
MindMapHook
getResourceString
in interface MindMapHook
public java.net.URL getResource(java.lang.String resourceName)
public java.lang.Object getPluginBaseClass()
MindMapHook
getPluginBaseClass
in interface MindMapHook
public void setPluginBaseClass(MindMapHook.PluginBaseClassSearcher baseClass)
setPluginBaseClass
in interface MindMapHook
protected void obtainFocusForSelected()