java.awt.event.ActionListener
, java.io.Serializable
, java.lang.Cloneable
, java.util.EventListener
, javax.swing.Action
, SyntaxAction
public class ScriptAction extends DefaultSyntaxAction
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
ACTION_PREFIX, LARGE_ICONS_LOC_PREFIX, SMALL_ICONS_LOC_PREFIX
Constructor | Description |
---|---|
ScriptAction() |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed(javax.swing.text.JTextComponent target,
SyntaxDocument sDoc,
int dot,
java.awt.event.ActionEvent e) |
Convenience method that will be called if the Action is performed on a
JTextComponent.
|
void |
config(Configuration config,
java.lang.String name) |
Configure the actions in this class
|
void |
getScriptFromURL(java.lang.String url) |
|
void |
setFunction(java.lang.String name) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
actionPerformed, setLargeIcon, setMenuText, setSmallIcon, setToolTip, toString
public void actionPerformed(javax.swing.text.JTextComponent target, SyntaxDocument sDoc, int dot, java.awt.event.ActionEvent e)
DefaultSyntaxAction
actionPerformed
in class DefaultSyntaxAction
target
- (non-null JTextComponent from Action.getSourcesDoc
- (SyntaxDOcument of the text component, could be null)dot
- (position of caret at text document)e
- actual ActionEvent passed to actionPerformedpublic void setFunction(java.lang.String name)
public void config(Configuration config, java.lang.String name)
SyntaxAction
config
in interface SyntaxAction
config
in class DefaultSyntaxAction
name
- Name of the action, (prefixed by Action.)
will be obtained from the property Key as the
text following the Action.public void getScriptFromURL(java.lang.String url)
url
-