public class PluginResourceHelp extends Object implements IPluginResource
There are essentially two ways to declare a help resource, one for internal help resources and one for external help resources:
| Constructor and Description |
|---|
PluginResourceHelp() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the action that will be invoked when the associated menu item is clicked.
|
String |
getModule()
Returns the id of the associated help module.
|
String |
getPath()
Returns the path that determines where the associated menu item will appear under the help
submenu.
|
String |
getTopic()
Returns the topic id associated with this help resource.
|
void |
register(CareWebShell shell,
ElementBase owner,
boolean register)
Registers/unregisters a help resource.
|
void |
setAction(String action)
Sets the action that will be invoked when the associated menu item is clicked.
|
void |
setModule(String module)
Sets the id of the associated help module.
|
void |
setPath(String path)
Sets the path that determines where the associated menu item will appear under the help
submenu.
|
void |
setTopic(String topic)
Sets the topic id associated with this help resource.
|
public String getPath()
public void setPath(String path)
path - The path that determines where the associated menu item will appear under the
help submenu. A menu hierarchy can be specified by separating levels with
backslash characters.public String getAction()
public void setAction(String action)
action - The action to be invoked to display the help content. This may be a url or a
groovy script action.public String getTopic()
public void setTopic(String topic)
topic - The id of the topic to be displayed, or empty to display the default topic.public String getModule()
public void setModule(String module)
module - The id of the associated help module.public void register(CareWebShell shell, ElementBase owner, boolean register)
register in interface IPluginResourceshell - The running shell.owner - Owner of the resource.register - If true, register the resource. If false, unregister it.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.