public class ScriptAction extends DefaultSyntaxAction
ACTION_PREFIX, LARGE_ICONS_LOC_PREFIX, SMALL_ICONS_LOC_PREFIX| Constructor and Description |
|---|
ScriptAction() |
| Modifier and Type | Method and 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 |
getScriptFromURL(java.lang.String url) |
void |
install(javax.swing.JEditorPane editor,
Configuration config,
java.lang.String name)
Configure the actions in this class
|
void |
setFunction(java.lang.String name) |
actionPerformed, deinstall, setLargeIcon, setMenuText, setSmallIcon, setToolTip, toStringaugmentList, getFocusedComponent, getTextComponentaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic void actionPerformed(javax.swing.text.JTextComponent target,
SyntaxDocument sDoc,
int dot,
java.awt.event.ActionEvent e)
DefaultSyntaxActionactionPerformed in class DefaultSyntaxActiontarget - (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 install(javax.swing.JEditorPane editor,
Configuration config,
java.lang.String name)
SyntaxActioninstall in interface SyntaxActioninstall in class DefaultSyntaxActionconfig - the properties from which the action was constructedname - 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)