Skip navigation links 
 
oracle.javatools.editor
Class BasicEditorKit.DeleteNextWordAction
java.lang.Object
  
javax.swing.AbstractAction
      
javax.swing.text.TextAction
          
oracle.javatools.editor.BasicAction
              
oracle.javatools.editor.BasicWriteAction
                  
oracle.javatools.editor.BasicEditorKit.DeleteNextWordAction
- All Implemented Interfaces:
 
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
 
- Enclosing class:
 
- BasicEditorKit
 
- 
public static class BasicEditorKit.DeleteNextWordAction
 
- extends BasicWriteAction
 
The DeleteUntilNextWordAction implementation of the action for deleting from cursor position until the next occurrence of a word start or word end.
- See Also:
 
- Serialized Form
 
 
| Field Summary | 
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. | 
 
| Fields inherited from class javax.swing.AbstractAction | 
changeSupport, enabled | 
 
| Fields inherited from interface javax.swing.Action | 
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON | 
  
 
  
 
 
 
| Methods inherited from class oracle.javatools.editor.BasicAction | 
beep, buildIndent, getFontHeight, getIndentSizeProperty, getLastAction, getMagicCaretPosition, getName, getSmartIndentProvider, getSpaces, getTab, getTabs, getTabSizeProperty, getUseAutoIndentProperty, getUseTabsProperty, getVisibleRect, isEditable, setMagicCaretPosition, showMessage, skipLeadingIndent | 
 
| Methods inherited from class javax.swing.text.TextAction | 
augmentList, getFocusedComponent, getTextComponent | 
 
| Methods inherited from class javax.swing.AbstractAction | 
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled | 
 
| Methods inherited from class java.lang.Object | 
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
TO_START
public static final int TO_START
- Constant to delete to start of a word.
- See Also:
 
- Constant Field Values
 
 
TO_END
public static final int TO_END
- Constant to delete to end of a word.
- See Also:
 
- Constant Field Values
 
 
TO_BOTH
public static final int TO_BOTH
- Constant to delete to start or end of a word, whichever occurs first.
- See Also:
 
- Constant Field Values
 
 
BasicEditorKit.DeleteNextWordAction
public BasicEditorKit.DeleteNextWordAction(java.lang.String actionName,
                                           int wordBehavior)
- Constructs this object with the appropriate action name.
 
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event,
                            BasicEditorPane editor,
                            BasicDocument document)
- The operation to perform when this action is triggered.
 
- 
- Specified by:
 
actionPerformed in class BasicAction 
 
- 
- Parameters:
 
event - the action event 
editor - the editor his action was invoked in 
document - the document associated with the editor 
 
Skip navigation links 
 
Copyright © 1997, 2013, Oracle. All rights reserved.