public static class BasicEditorKit.DeletePreviousWordAction extends BasicWriteAction
DeletePreviousWordAction
implementation of the
action for deleting from cursor position until the previous occurrence
of a word start or word end.Modifier and Type | Field and Description |
---|---|
static int |
TO_BOTH
Constant to delete to start or end of a word, whichever occurs first.
|
static int |
TO_END
Constant to delete to end of a word.
|
static int |
TO_START
Constant to delete to start of a word.
|
Constructor and Description |
---|
BasicEditorKit.DeletePreviousWordAction(java.lang.String actionName,
int wordBehavior)
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.
|
actionPerformed, lock, unlock
beep, buildIndent, getFontHeight, getIndentSizeProperty, getLastAction, getMagicCaretPosition, getName, getSmartIndentProvider, getSpaces, getTab, getTabs, getTabSizeProperty, getUseAutoIndentProperty, getUseTabsProperty, getVisibleRect, isEditable, setMagicCaretPosition, showMessage, skipLeadingIndent
augmentList, getFocusedComponent, getTextComponent
public static final int TO_START
public static final int TO_END
public static final int TO_BOTH
public BasicEditorKit.DeletePreviousWordAction(java.lang.String actionName, int wordBehavior)
public void actionPerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document)
actionPerformed
in class BasicAction
event
- the action eventeditor
- the editor his action was invoked indocument
- the document associated with the editor