gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.swing / org.gvsig.scripting.swing.api / src / main / java / org / gvsig / scripting / swing / api / SyntaxtHighlightTextComponent.java @ 468
History | View | Annotate | Download (826 Bytes)
1 |
package org.gvsig.scripting.swing.api; |
---|---|
2 |
|
3 |
import java.awt.event.ActionListener; |
4 |
import java.awt.event.KeyListener; |
5 |
|
6 |
import javax.swing.JScrollPane; |
7 |
import javax.swing.text.JTextComponent; |
8 |
import org.gvsig.tools.swing.api.Component; |
9 |
|
10 |
public interface SyntaxtHighlightTextComponent extends Component { |
11 |
|
12 |
public interface UpdateCaretPositionActionEvent { |
13 |
public int getLine(); |
14 |
public int getColumn(); |
15 |
public boolean hasLineAndColumn(); |
16 |
} |
17 |
|
18 |
public JTextComponent getJTextComponent(); |
19 |
|
20 |
public JScrollPane getJScrollPane(); |
21 |
|
22 |
public void setText(String text); |
23 |
|
24 |
public String getText(); |
25 |
|
26 |
public void setContentType(String contentType); |
27 |
|
28 |
public String getContentType(); |
29 |
|
30 |
public void addUpdateCaretPositionActionListener(ActionListener updateCaretPosition); |
31 |
|
32 |
public void addKeyListener(KeyListener keyListener); |
33 |
|
34 |
} |