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

  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`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### 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 Details

  - ### getJavaScriptCommand

    public String getJavaScriptCommand()
    Returns:
      the JavaScript command called by this button