public class JRSyntaxTextArea extends Object implements SyntaxtHighlightTextComponent
| Modifier and Type | Class and Description |
|---|---|
class |
JRSyntaxTextArea.DefaultUpdateCaretPositionActionEvent |
static class |
JRSyntaxTextArea.MyCheckBox |
SyntaxtHighlightTextComponent.UpdateCaretPositionActionEvent| Modifier and Type | Field and Description |
|---|---|
protected RSyntaxTextArea |
textArea |
protected ActionListener |
updateCaretPosition |
| Constructor and Description |
|---|
JRSyntaxTextArea() |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyListener(KeyListener keyListener) |
void |
addLineTrackingIcon(String tag,
int line,
Icon icon,
String tip) |
void |
addLineTrackingIcon(String tag,
int line,
Icon icon,
String tip,
Color color) |
void |
addUpdateCaretPositionActionListener(ActionListener updateCaretPosition) |
JComponent |
asJComponent()
Returns this component as a swing
JComponent. |
void |
discardAllEdits() |
String |
getContentType() |
JScrollPane |
getJScrollPane() |
JTextComponent |
getJTextComponent() |
String |
getSelectedText() |
String |
getText() |
void |
gotoline(int line) |
protected void |
init() |
void |
removeTrackingIcons() |
void |
removeTrackingIcons(String tag) |
void |
searchEvent(SearchEvent e) |
void |
setContentType(String contentType) |
void |
setText(String text) |
protected ActionListener updateCaretPosition
protected RSyntaxTextArea textArea
protected void init()
public void setContentType(String contentType)
setContentType in interface SyntaxtHighlightTextComponentpublic JScrollPane getJScrollPane()
getJScrollPane in interface SyntaxtHighlightTextComponentpublic JTextComponent getJTextComponent()
getJTextComponent in interface SyntaxtHighlightTextComponentpublic JComponent asJComponent()
ComponentJComponent.asJComponent in interface ComponentJComponentpublic String getContentType()
getContentType in interface SyntaxtHighlightTextComponentpublic void addUpdateCaretPositionActionListener(ActionListener updateCaretPosition)
addUpdateCaretPositionActionListener in interface SyntaxtHighlightTextComponentpublic void setText(String text)
setText in interface SyntaxtHighlightTextComponentpublic String getText()
getText in interface SyntaxtHighlightTextComponentpublic void addKeyListener(KeyListener keyListener)
addKeyListener in interface SyntaxtHighlightTextComponentpublic void searchEvent(SearchEvent e)
public String getSelectedText()
public void discardAllEdits()
discardAllEdits in interface SyntaxtHighlightTextComponentpublic void removeTrackingIcons()
removeTrackingIcons in interface SyntaxtHighlightTextComponentpublic void addLineTrackingIcon(String tag, int line, Icon icon, String tip)
addLineTrackingIcon in interface SyntaxtHighlightTextComponentpublic void addLineTrackingIcon(String tag, int line, Icon icon, String tip, Color color)
addLineTrackingIcon in interface SyntaxtHighlightTextComponentpublic void removeTrackingIcons(String tag)
removeTrackingIcons in interface SyntaxtHighlightTextComponentpublic void gotoline(int line)
gotoline in interface SyntaxtHighlightTextComponent