|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.nav2.plugins.DefaultPlugin
public class DefaultPlugin
INTERNAL: This is the plugin implementation that is used if no other implementation is requested in the plugin.xml file.
Field Summary | |
---|---|
protected java.lang.String |
description
|
protected java.lang.String |
directory
|
protected java.util.List |
groups
|
protected java.lang.String |
id
|
protected java.util.Map |
params
|
static java.lang.String |
RP_TOPIC_ID
|
static java.lang.String |
RP_TOPICMAP_ID
|
protected int |
state
|
protected java.lang.String |
target
|
protected java.lang.String |
title
|
protected java.lang.String |
uri
|
Fields inherited from interface net.ontopia.topicmaps.nav2.plugins.PluginIF |
---|
ACTIVATED, DEACTIVATED, ERROR |
Constructor Summary | |
---|---|
DefaultPlugin()
|
Method Summary | |
---|---|
void |
addGroup(java.lang.String groupId)
INTERNAL: Add the specified group to groups this plugin belongs to. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
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. |
java.lang.String |
getDescription()
INTERNAL: Gets the description of this plugin. |
java.util.List |
getGroups()
INTERNAL: Returns the groups this plugin belongs to. |
java.lang.String |
getId()
INTERNAL: Returns the ID of this plugin. |
java.lang.String |
getParameter(java.lang.String name)
INTERNAL: Returns the value of the parameter. |
java.lang.String |
getPluginDirectory()
INTERNAL: Returns the path to the plugin directory. |
int |
getState()
INTERNAL: Returns the state of this plugin. |
protected java.lang.String |
getStateAsString()
|
java.lang.String |
getTarget()
INTERNAL: Returns the URI frame target of this plugin. |
java.lang.String |
getTitle()
INTERNAL: Returns the title of this plugin. |
java.lang.String |
getURI()
INTERNAL: Returns the URI of this plugin. |
int |
hashCode()
|
void |
init()
INTERNAL: Called by the framework to finalize initialization. |
void |
resetGroups()
INTERNAL: Reset all group settings for this plugin. |
void |
setDescription(java.lang.String description)
INTERNAL: Sets the description of this plugin. |
void |
setGroups(java.util.List groups)
INTERNAL: Sets the groups this plugin belongs to. |
void |
setId(java.lang.String id)
INTERNAL: Sets the ID of this plugin. |
void |
setParameter(java.lang.String name,
java.lang.String value)
INTERNAL: Called by the framework to give the plugin the value of a configuration parameter. |
void |
setPluginDirectory(java.lang.String path)
INTERNAL: Called by the framework to give the plugin the directory its plugin.xml file was found in. |
void |
setState(int state)
INTERNAL: Sets the state of this plugin. |
void |
setTarget(java.lang.String target)
INTERNAL: Sets the URI frame target of this plugin. |
void |
setTitle(java.lang.String title)
INTERNAL: Sets the title of this plugin. |
void |
setURI(java.lang.String uri)
INTERNAL: Sets the URI of this plugin. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int state
protected java.lang.String title
protected java.lang.String description
protected java.lang.String uri
protected java.lang.String target
protected java.lang.String id
protected java.lang.String directory
protected java.util.Map params
protected java.util.List groups
public static final java.lang.String RP_TOPICMAP_ID
public static final java.lang.String RP_TOPIC_ID
Constructor Detail |
---|
public DefaultPlugin()
Method Detail |
---|
public void init()
PluginIF
init
in interface PluginIF
public java.lang.String generateHTML(ContextTag context)
PluginIF
generateHTML
in interface PluginIF
public java.lang.String getId()
PluginIF
getId
in interface PluginIF
public void setId(java.lang.String id)
PluginIF
setId
in interface PluginIF
public void resetGroups()
PluginIF
resetGroups
in interface PluginIF
public java.util.List getGroups()
PluginIF
getGroups
in interface PluginIF
public void addGroup(java.lang.String groupId)
PluginIF
addGroup
in interface PluginIF
public void setGroups(java.util.List groups)
PluginIF
setGroups
in interface PluginIF
public java.lang.String getTitle()
PluginIF
getTitle
in interface PluginIF
public void setTitle(java.lang.String title)
PluginIF
setTitle
in interface PluginIF
public java.lang.String getDescription()
PluginIF
getDescription
in interface PluginIF
public void setDescription(java.lang.String description)
PluginIF
setDescription
in interface PluginIF
public java.lang.String getURI()
PluginIF
getURI
in interface PluginIF
public void setURI(java.lang.String uri)
PluginIF
Note: This has not to contain the web application context path.
Example: plugins/hello/hello.jsp
setURI
in interface PluginIF
public java.lang.String getTarget()
PluginIF
getTarget
in interface PluginIF
public void setTarget(java.lang.String target)
PluginIF
setTarget
in interface PluginIF
public int getState()
PluginIF
getState
in interface PluginIF
public void setState(int state)
PluginIF
setState
in interface PluginIF
public java.lang.String getParameter(java.lang.String name)
PluginIF
getParameter
in interface PluginIF
public void setParameter(java.lang.String name, java.lang.String value)
PluginIF
setParameter
in interface PluginIF
public java.lang.String getPluginDirectory()
PluginIF
getPluginDirectory
in interface PluginIF
public void setPluginDirectory(java.lang.String path)
PluginIF
setPluginDirectory
in interface PluginIF
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getStateAsString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |