jsyntaxpane.actions
public class TemplateAction extends DefaultSyntaxAction
ACTION_PREFIX, LARGE_ICONS_LOC_PREFIX, SMALL_ICONS_LOC_PREFIX
Constructor and Description |
---|
TemplateAction() |
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 |
setMustHaveSelection(java.lang.String value) |
void |
setTemplate(java.lang.String t) |
void |
setWholeLines(java.lang.String value) |
actionPerformed, config, setLargeIcon, setMenuText, setSmallIcon, setToolTip, toString
augmentList, getFocusedComponent, getTextComponent
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
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 setWholeLines(java.lang.String value)
public void setTemplate(java.lang.String t)
public void setMustHaveSelection(java.lang.String value)