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.BasicAction.MultiSelectionBehavior| 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. 
 | 
multiSelectionBehavior| Constructor and Description | 
|---|
DeletePreviousWordAction(java.lang.String actionName,
                        int wordBehavior)
Constructs this object with the appropriate action name. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
actionPerformedOnSelection(java.awt.event.ActionEvent event,
                          BasicEditorPane editor,
                          BasicDocument document,
                          oracle.javatools.editor.MultiSelectionSupport.MultiSelection selection,
                          boolean isPrimarySelection)
The operation to perform when this action is triggered. 
 | 
actionPerformed, actionSetup, lock, unlockactionPerformed, actionPerformMulti, actionPerformMultiForSelections, actionTakedown, beep, buildIndent, getFontHeight, getIndentSizeProperty, getLastAction, getMagicCaretPosition, getMagicCaretPosition, getName, getSmartIndentProvider, getSpaces, getTab, getTabs, getTabSizeProperty, getUseAutoIndentProperty, getUseTabsProperty, getVisibleRect, isEditable, setMagicCaretPosition, setMagicCaretPosition, showMessage, skipLeadingIndentaugmentList, getFocusedComponent, getTextComponentpublic static final int TO_START
public static final int TO_END
public static final int TO_BOTH
public DeletePreviousWordAction(java.lang.String actionName,
                                int wordBehavior)
public void actionPerformedOnSelection(java.awt.event.ActionEvent event,
                                       BasicEditorPane editor,
                                       BasicDocument document,
                                       oracle.javatools.editor.MultiSelectionSupport.MultiSelection selection,
                                       boolean isPrimarySelection)
actionPerformedOnSelection in class BasicActionevent - the action eventeditor - the editor his action was invoked indocument - the document associated with the editorisPrimarySelection - true if the call is for the main selection, false for multiSelection.