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