Package com.orchestranetworks.ui
Class UIButtonSpecJSAction
- java.lang.Object
-
- com.orchestranetworks.ui.UIButtonSpec
-
- com.orchestranetworks.ui.UIButtonSpecJSAction
-
public final class UIButtonSpecJSAction extends UIButtonSpec
Standard button to launch a JavaScript command. This command can be a function or a piece of JavaScript code.- Since:
- 5.2.0
-
-
Constructor Summary
Constructors Constructor Description UIButtonSpecJSAction(UserMessage aLabel, String aJavaScriptCommand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getJavaScriptCommand()
-
Methods inherited from class com.orchestranetworks.ui.UIButtonSpec
getButtonIcon, getButtonLayout, getConfirmationMessage, getIconURL, getId, getLabel, getRelief, getTooltip, hasConfirmationMessage, isDefaultButton, isDisabled, isExcludedFromTabFocus, setButtonIcon, setButtonLayout, setConfirmationMessage, setCssClass, setDefaultButton, setDisabled, setExcludedFromTabFocus, setIconURL, setId, setLabel, setRelief, setTooltip
-
-
-
-
Constructor Detail
-
UIButtonSpecJSAction
public UIButtonSpecJSAction(UserMessage aLabel, String aJavaScriptCommand)
- Parameters:
aLabel
- the label of the button.aJavaScriptCommand
- the JavaScript command to call when the button is clicked.
-
-
Method Detail
-
getJavaScriptCommand
public String getJavaScriptCommand()
- Returns:
- the JavaScript command called by this button
-
-