public abstract static class BasicEditorKit.EmacsKillTypeAction extends EmacsWriteAction
EmacsKillTypeAction is a base action for all Emacs kill-type action implementations. It implements the functionality for tracking whether the last action was a kill, if focus has left the editor, or if navigation occurred via the mouse.EmacsAction.Tracker| Constructor and Description |
|---|
BasicEditorKit.EmacsKillTypeAction(java.lang.String actionName)
Constructs this object with the appropriate action name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document)
The operation to perform when this action is triggered.
|
protected abstract boolean |
killPerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document, boolean lastActionWasKill)
The kill operation to perform when this action is triggered.
|
lock, unlockaddKillRing, appendKillRing, getClipboardText, getMark, getSystemClipboard, popKillRing, prependKillRing, removeMark, setClipboardText, setMark, setSystemClipboard, showEndBufferMessage, showMarkNotSetMessage, showMarkSetMessage, showNextKillAppendMessage, showPreviousNotYankMessage, showReadOnlyMessage, yankKillRingactionPerformed, beep, buildIndent, getFontHeight, getIndentSizeProperty, getLastAction, getMagicCaretPosition, getName, getSmartIndentProvider, getSpaces, getTab, getTabs, getTabSizeProperty, getUseAutoIndentProperty, getUseTabsProperty, getVisibleRect, isEditable, setMagicCaretPosition, showMessage, skipLeadingIndentaugmentList, getFocusedComponent, getTextComponentpublic BasicEditorKit.EmacsKillTypeAction(java.lang.String actionName)
protected abstract boolean killPerformed(java.awt.event.ActionEvent event,
BasicEditorPane editor,
BasicDocument document,
boolean lastActionWasKill)
event - the action eventeditor - the editor his action was invoked indocument - the document associated with the editorlastActionWasKill - whether the previous action was a kill
public final void actionPerformed(java.awt.event.ActionEvent event,
BasicEditorPane editor,
BasicDocument document)
actionPerformed in class EmacsActionevent - the action eventeditor - the editor his action was invoked indocument - the document associated with the editor