Class ScriptPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class ScriptPanel extends JPanel implements Scrollable
Component for PhonScript forms. To listen for changes in the script and available parameters add a property change listener to this panel. The property of the script will be SCRIPT_PROP while the property of the individual script parameters will be PARAM_PREFIX+<paramName>.
See Also:
  • Field Details

    • SCRIPT_PROP

      public static final String SCRIPT_PROP
      Property for the script text. This is sent when the editor is no longer displayed.
    • PARAM_PREFIX

      public static final String PARAM_PREFIX
      Property prefix for script parameters
    • SCRIPT_PARAMS

      public static final String SCRIPT_PARAMS
  • Constructor Details

    • ScriptPanel

      public ScriptPanel()
      Create a new empty script panel
    • ScriptPanel

      public ScriptPanel(PhonScript script)
      Constructor
      Parameters:
      script -
  • Method Details