11 package net.sf.gridarta.textedit.textarea.actions;
13 import java.awt.event.ActionEvent;
14 import java.awt.event.ActionListener;
19 public class NextWord implements ActionListener {
37 if (caret == lineText.length()) {
39 textArea.getToolkit().beep();
44 final String noWordSep = (String) textArea.
getDocument().getProperty(
"noWordSep");
int getMarkPosition()
Returns the mark position.
int getDocumentLength()
Returns the length of the document.
An input handler converts the user's key strokes into concrete actions.
Base package of all Gridarta classes.
int getLineStartOffset(final int line)
Returns the start offset of the specified line.
void select(final int start, final int end)
Selects from the start offset to the end offset.
NextWord(final boolean select)
This package contains the other part of the script editor.
int getCaretPosition()
Returns the caret position.
CharSequence getLineText(final int lineIndex)
Returns the text on the specified line.
Document getDocument()
Returns the document this text area is editing.
static JEditTextArea getTextArea(final EventObject evt)
Returns the text area that fired the specified event.
int getCaretLine()
Returns the caret line.
void actionPerformed(final ActionEvent e)
void setCaretPosition(final int caret)
Sets the caret position.
jEdit's text area component.
Class with several utility functions used by the text area component.
static int findWordEnd(final CharSequence line, final int pos, final String noWordSep)
Locates the end of the word at the specified position.