org.fife.ui.rsyntaxtextarea
Class RSyntaxTextAreaEditorKit.BeginWordAction

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.BeginWordAction
                  extended by org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaEditorKit.BeginWordAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
RSyntaxTextAreaEditorKit

protected static class RSyntaxTextAreaEditorKit.BeginWordAction
extends RTextAreaEditorKit.BeginWordAction

Positions the caret at the beginning of the word. This class is here to better handle finding the "beginning of the word" for programming languages.

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, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected RSyntaxTextAreaEditorKit.BeginWordAction(java.lang.String name, boolean select)
           
 
Method Summary
protected  int getWordStart(RTextArea textArea, int offs)
           
 
Methods inherited from class org.fife.ui.rtextarea.RTextAreaEditorKit.BeginWordAction
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.BeginWordAction

protected RSyntaxTextAreaEditorKit.BeginWordAction(java.lang.String name,
                                                   boolean select)
Method Detail

getWordStart

protected int getWordStart(RTextArea textArea,
                           int offs)
                    throws javax.swing.text.BadLocationException
Overrides:
getWordStart in class RTextAreaEditorKit.BeginWordAction
Throws:
javax.swing.text.BadLocationException