public class PluginResourceButton extends Object implements IPluginResource
| Constructor and Description |
|---|
PluginResourceButton() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the action that will be invoked when the button is clicked.
|
String |
getCaption()
Returns the value of the button's caption text.
|
String |
getHint()
Returns the text to appear when the mouse cursor hovers over the button.
|
String |
getIcon()
Returns the url of an image to display on the button.
|
String |
getId()
Returns the id to be assigned to the newly created component.
|
void |
register(CareWebShell shell,
ElementBase owner,
boolean register)
Registers/unregisters a button resource.
|
void |
setAction(String action)
Sets the action that will be invoked when the button is clicked.
|
void |
setCaption(String caption)
Sets the value of the button's caption text.
|
void |
setHint(String hint)
Sets the text to appear when the mouse cursor hovers over the button.
|
void |
setIcon(String icon)
Sets the url of an image to display on the button.
|
void |
setId(String id)
Sets the id to be assigned to the newly created component.
|
public String getCaption()
public void setCaption(String caption)
caption - The button's caption text.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 getHint()
public void setHint(String hint)
hint - The tool tip text.public String getIcon()
public void setIcon(String icon)
icon - Url of the image.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.