org.fife.ui.rsyntaxtextarea
Class RSyntaxTextAreaEditorKit.DeletePrevWordAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by org.fife.ui.rtextarea.RecordableTextAction
              extended by org.fife.ui.rtextarea.RTextAreaEditorKit.DeletePrevWordAction
                  extended by org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaEditorKit.DeletePrevWordAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
RSyntaxTextAreaEditorKit

public static class RSyntaxTextAreaEditorKit.DeletePrevWordAction
extends RTextAreaEditorKit.DeletePrevWordAction

Deletes the previous word, but differentiates symbols from "words" to match the behavior of code editors.

See Also:
Serialized Form

Field Summary
 
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
 
Constructor Summary
RSyntaxTextAreaEditorKit.DeletePrevWordAction()
           
 
Method Summary
protected  int getPreviousWordStart(RTextArea textArea, int offs)
          Returns the starting offset to delete.
 
Methods inherited from class org.fife.ui.rtextarea.RTextAreaEditorKit.DeletePrevWordAction
actionPerformedImpl, getMacroID
 
Methods inherited from class org.fife.ui.rtextarea.RecordableTextAction
actionPerformed, getAccelerator, getDescription, getIcon, getMnemonic, getName, isRecordable, setAccelerator, setMnemonic, setMnemonic, setName, setProperties, setRecordable, setShortDescription
 
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
 

Constructor Detail

RSyntaxTextAreaEditorKit.DeletePrevWordAction

public RSyntaxTextAreaEditorKit.DeletePrevWordAction()
Method Detail

getPreviousWordStart

protected int getPreviousWordStart(RTextArea textArea,
                                   int offs)
                            throws BadLocationException
Description copied from class: RTextAreaEditorKit.DeletePrevWordAction
Returns the starting offset to delete. Exists so subclasses can override.

Overrides:
getPreviousWordStart in class RTextAreaEditorKit.DeletePrevWordAction
Throws:
BadLocationException


Copyright © 2003–2013. All rights reserved.