Interface PluginIF
- All Known Implementing Classes:
DefaultPlugin,FulltextPlugin,GooglePlugin,RDF2TMPlugin,ReloadPlugin,TextPlugin,TopicMapLinkPlugin,ValidationPlugin,VizPlugin
public interface PluginIF
INTERNAL: The common interface for all navigator plugin objects.
This interface can either be implemented by the plugin, or a
default implementation (DefaultPlugin) can be used.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidINTERNAL: Add the specified group to groups this plugin belongs to.generateHTML(ContextTag context) INTERNAL: Called by the framework to make the plugin produce the HTML that is going to represent it on a web page in the web application.INTERNAL: Gets the description of this plugin.INTERNAL: Returns the groups this plugin belongs to.getId()INTERNAL: Returns the ID of this plugin.getParameter(String name) INTERNAL: Returns the value of the parameter.INTERNAL: Returns the path to the plugin directory.intgetState()INTERNAL: Returns the state of this plugin.INTERNAL: Returns the URI frame target of this plugin.getTitle()INTERNAL: Returns the title of this plugin.getURI()INTERNAL: Returns the URI of this plugin.voidinit()INTERNAL: Called by the framework to finalize initialization.voidINTERNAL: Reset all group settings for this plugin.voidsetDescription(String description) INTERNAL: Sets the description of this plugin.voidINTERNAL: Sets the groups this plugin belongs to.voidINTERNAL: Sets the ID of this plugin.voidsetParameter(String name, String value) INTERNAL: Called by the framework to give the plugin the value of a configuration parameter.voidsetPluginDirectory(String path) INTERNAL: Called by the framework to give the plugin the directory its plugin.xml file was found in.voidsetState(int state) INTERNAL: Sets the state of this plugin.voidINTERNAL: Sets the URI frame target of this plugin.voidINTERNAL: Sets the title of this plugin.voidINTERNAL: Sets the URI of this plugin.
-
Field Details
-
ACTIVATED
static final int ACTIVATED- See Also:
-
DEACTIVATED
static final int DEACTIVATED- See Also:
-
ERROR
static final int ERROR- See Also:
-
-
Method Details
-
init
void init()INTERNAL: Called by the framework to finalize initialization. Called when there are no more parameters. -
getId
String getId()INTERNAL: Returns the ID of this plugin. -
setId
INTERNAL: Sets the ID of this plugin. -
getGroups
List getGroups()INTERNAL: Returns the groups this plugin belongs to. Each group is represented by a string containing the group id. -
resetGroups
void resetGroups()INTERNAL: Reset all group settings for this plugin. After this operation this plugin will belong to no group. -
addGroup
INTERNAL: Add the specified group to groups this plugin belongs to. -
setGroups
INTERNAL: Sets the groups this plugin belongs to. -
getTitle
String getTitle()INTERNAL: Returns the title of this plugin. -
setTitle
INTERNAL: Sets the title of this plugin. -
getDescription
String getDescription()INTERNAL: Gets the description of this plugin. -
setDescription
INTERNAL: Sets the description of this plugin. -
getURI
String getURI()INTERNAL: Returns the URI of this plugin. -
setURI
INTERNAL: Sets the URI of this plugin.Note: This has not to contain the web application context path.
Example:
plugins/hello/hello.jsp -
getTarget
String getTarget()INTERNAL: Returns the URI frame target of this plugin. -
setTarget
INTERNAL: Sets the URI frame target of this plugin. -
getState
int getState()INTERNAL: Returns the state of this plugin. -
setState
void setState(int state) INTERNAL: Sets the state of this plugin. -
getParameter
INTERNAL: Returns the value of the parameter. -
setParameter
INTERNAL: Called by the framework to give the plugin the value of a configuration parameter. -
getPluginDirectory
String getPluginDirectory()INTERNAL: Returns the path to the plugin directory. This is the path in the file system the server is running in, if the web application is deployed as an unexploded WAR. -
setPluginDirectory
INTERNAL: Called by the framework to give the plugin the directory its plugin.xml file was found in. This is useful for plugins which wish to use other files found in the same directory.