com.frinika.sequencer.gui.menu
Class ScriptingAction
java.lang.Object
javax.swing.AbstractAction
com.frinika.sequencer.gui.menu.ScriptingAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class ScriptingAction
- extends javax.swing.AbstractAction
This class will be instantiated multiple times, using
the two different constructors with different semantics: constructor
ScriptingAction(frame) opens the project-wide scripting-dialog, while
constructor ScriptingAction(frame, FrinikaScript) will provide an action that
immediately executed the specified script.
This action is used to build the "Tools/Scripting" sub-menu.
Although this inherits AbstractMidiAction for implementation reasons, the
use of scripts generally is not restricted to modifying midi events, so
this class is located in package com.frinika.sequencer.gui.menu.
- Author:
- Jens Gulden
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
actionId
|
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
actionId
public static final java.lang.String actionId
- See Also:
- Constant Field Values
ScriptingAction
public ScriptingAction(ProjectFrame frame)
ScriptingAction
public ScriptingAction(ProjectFrame frame,
FrinikaScript script)
initDialog
public void initDialog(javax.swing.JMenu scriptingSubmenu)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)