11 package net.sf.gridarta.textedit.textarea.actions;
13 import java.awt.event.ActionEvent;
14 import java.awt.event.ActionListener;
18 public class Home implements ActionListener {
22 public Home(
final boolean select) {
35 final int firstVisibleLine = firstLine == 0 ? 0 : firstLine + textArea.
getElectricScroll();
39 textArea.getToolkit().beep();
43 }
else if (caret == firstVisible) {
45 }
else if (caret == firstOfLine) {
int getMarkPosition()
Returns the mark position.
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.
Home(final boolean select)
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.
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.
jEdit's text area component.
void actionPerformed(final ActionEvent e)
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...