public abstract static class BasicEditorKit.EmacsCaseWordAction extends EmacsWriteAction
EmacsCaseWordAction is a base action for Emacs
word-case action implementations. It takes care of the common
functionality, like starting an edit, finding the word boundary,
replacing the text, and so on. Implementation of word-case Emacs
actions contributed by Doug Bitting.EmacsAction.TrackerBasicAction.MultiSelectionBehaviormultiSelectionBehavior| Constructor and Description |
|---|
EmacsCaseWordAction(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.
|
abstract EditDescriptor |
getEditDescriptor()
Fetch the edit descriptor to use for undo purposes.
|
abstract java.lang.String |
performModification(java.lang.String wordText)
Perform the case changes to the word text.
|
lock, unlockaddKillRing, appendKillRing, getClipboardText, getMark, getSystemClipboard, popKillRing, prependKillRing, removeMark, setClipboardText, setMark, setSystemClipboard, showEndBufferMessage, showMarkNotSetMessage, showMarkSetMessage, showNextKillAppendMessage, showPreviousNotYankMessage, showReadOnlyMessage, yankKillRingactionPerformed, actionPerformedOnSelection, actionPerformMulti, actionPerformMultiForSelections, actionSetup, actionTakedown, beep, buildIndent, getFontHeight, getIndentSizeProperty, getLastAction, getMagicCaretPosition, getMagicCaretPosition, getName, getSmartIndentProvider, getSpaces, getTab, getTabs, getTabSizeProperty, getUseAutoIndentProperty, getUseTabsProperty, getVisibleRect, isEditable, setMagicCaretPosition, setMagicCaretPosition, showMessage, skipLeadingIndentaugmentList, getFocusedComponent, getTextComponentpublic EmacsCaseWordAction(java.lang.String actionName)
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 editorpublic abstract java.lang.String performModification(java.lang.String wordText)
wordText - the word text to perform the case changes topublic abstract EditDescriptor getEditDescriptor()