11 package net.sf.gridarta.textedit.textarea.actions;
13 import java.awt.event.ActionEvent;
14 import java.awt.event.ActionListener;
18 public class End implements ActionListener {
22 public End(
final boolean select) {
35 lastVisibleLine = Math.min(textArea.
getLineCount() - 1, lastVisibleLine);
43 if (caret == lastDocument) {
44 textArea.getToolkit().beep();
48 }
else if (caret == lastVisible) {
50 }
else if (caret == lastOfLine) {
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 getLineCount()
Returns the number of lines in the document.
void actionPerformed(final ActionEvent e)
void select(final int start, final int end)
Selects from the start offset to the end offset.
This package contains the other part of the script editor.
int getCaretPosition()
Returns the caret position.
int getElectricScroll()
Returns the number of lines from the top and button of the text area that are always visible...
int getFirstLine()
Returns the line displayed at the text area's origin.
End(final boolean select)
static JEditTextArea getTextArea(final EventObject evt)
Returns the text area that fired the specified event.
int getCaretLine()
Returns the caret line.
void setCaretPosition(final int caret)
Sets the caret position.
int getLineEndOffset(final int line)
Returns the end offset of the specified line.
int getVisibleLines()
Returns the number of lines visible in this text area.
jEdit's text area component.
static final String SMART_HOME_END_PROPERTY
If this client property is set to Boolean.TRUE on the text area, the home/end keys will support 'smar...