public class PluginResourceMenu extends Object implements IPluginResource
| Constructor and Description |
|---|
PluginResourceMenu() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the action that will be invoked when the menu item is clicked.
|
String |
getId()
Returns the id to be assigned to the newly created component.
|
String |
getPath()
Returns the path that determines where the associated menu item will appear under the common
menu.
|
void |
register(CareWebShell shell,
ElementBase owner,
boolean register)
Registers/unregisters a plugin resource.
|
void |
setAction(String action)
Sets the action that will be invoked when the menu item is clicked.
|
void |
setId(String id)
Sets the id to be assigned to the newly created component.
|
void |
setPath(String path)
Sets the path that determines where the associated menu item will appear under the common
menu.
|
public String getPath()
public void setPath(String path)
path - The path that determines where the associated menu item will appear under the
common menu. 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. This may be a url or a groovy script action.public String getId()
public void setId(String id)
id - Component id (may be null).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.