Package org.fife.ui.rsyntaxtextarea
Class RSyntaxTextAreaEditorKit.EndWordAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- javax.swing.text.TextAction
-
- org.fife.ui.rtextarea.RecordableTextAction
-
- org.fife.ui.rtextarea.RTextAreaEditorKit.EndWordAction
-
- org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaEditorKit.EndWordAction
-
- 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.EndWordAction extends RTextAreaEditorKit.EndWordAction
Positions the caret at the end of the word. This class is here to better handle finding the "end of the word" in programming languages.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.text.Segment
seg
-
Constructor Summary
Constructors Modifier Constructor Description protected
EndWordAction(java.lang.String name, boolean select)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getWordEnd(RTextArea textArea, int offs)
-
Methods inherited from class org.fife.ui.rtextarea.RTextAreaEditorKit.EndWordAction
actionPerformedImpl, getMacroID
-
Methods inherited from class org.fife.ui.rtextarea.RecordableTextAction
actionPerformed, getAccelerator, getDescription, getIcon, getMnemonic, getName, getShortDescription, 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
-
-
-
-
Method Detail
-
getWordEnd
protected int getWordEnd(RTextArea textArea, int offs) throws javax.swing.text.BadLocationException
- Overrides:
getWordEnd
in classRTextAreaEditorKit.EndWordAction
- Throws:
javax.swing.text.BadLocationException
-
-