Last change
on this file since 25584 was 25584, checked in by davidb, 12 years ago |
Initial cut an a text edit area for GLI that supports color syntax highlighting
|
File size:
1.4 KB
|
Line | |
---|
1 | /*
|
---|
2 | * 02/06/2011
|
---|
3 | *
|
---|
4 | * ActiveLineRangeListener.java - Listens for "active line range" changes
|
---|
5 | * in an RSyntaxTextArea.
|
---|
6 | *
|
---|
7 | * This library is distributed under a modified BSD license. See the included
|
---|
8 | * RSyntaxTextArea.License.txt file for details.
|
---|
9 | */
|
---|
10 | package org.fife.ui.rsyntaxtextarea;
|
---|
11 |
|
---|
12 | import java.util.EventListener;
|
---|
13 |
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Listens for "active line range" events from an <code>RSyntaxTextArea</code>.
|
---|
17 | * If a text area contains some semantic knowledge of the programming language
|
---|
18 | * being edited, it may broadcast {@link ActiveLineRangeEvent}s whenever the
|
---|
19 | * caret moves into a new "block" of code. Listeners can listen for these
|
---|
20 | * events and respond accordingly.<p>
|
---|
21 | *
|
---|
22 | * See the <code>RSTALanguageSupport</code> project at
|
---|
23 | * <a href="http://fifesoft.com">http://fifesoft.com</a> for some
|
---|
24 | * <code>LanguageSupport</code> implementations that may broadcast these
|
---|
25 | * events. Note that if an RSTA/LanguageSupport does not support broadcasting
|
---|
26 | * these events, the listener will simply never receive any notifications.
|
---|
27 | *
|
---|
28 | * @author Robert Futrell
|
---|
29 | * @version 1.0
|
---|
30 | */
|
---|
31 | public interface ActiveLineRangeListener extends EventListener {
|
---|
32 |
|
---|
33 |
|
---|
34 | /**
|
---|
35 | * Called whenever the "active line range" changes.
|
---|
36 | *
|
---|
37 | * @param e Information about the line range change. If there is no longer
|
---|
38 | * an "active line range," the "minimum" and "maximum" line values
|
---|
39 | * should both be <code>-1</code>.
|
---|
40 | */
|
---|
41 | public void activeLineRangeChanged(ActiveLineRangeEvent e);
|
---|
42 |
|
---|
43 |
|
---|
44 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.