public class JRSyntaxTextArea extends Object implements SyntaxtHighlightTextComponent
Modifier and Type | Class and Description |
---|---|
class |
JRSyntaxTextArea.DefaultUpdateCaretPositionActionEvent |
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 |
addUpdateCaretPositionActionListener(ActionListener updateCaretPosition) |
String |
getContentType() |
JScrollPane |
getJScrollPane() |
JTextComponent |
getJTextComponent() |
String |
getText() |
protected void |
init() |
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 SyntaxtHighlightTextComponent
public JScrollPane getJScrollPane()
getJScrollPane
in interface SyntaxtHighlightTextComponent
public JTextComponent getJTextComponent()
getJTextComponent
in interface SyntaxtHighlightTextComponent
public String getContentType()
getContentType
in interface SyntaxtHighlightTextComponent
public void addUpdateCaretPositionActionListener(ActionListener updateCaretPosition)
addUpdateCaretPositionActionListener
in interface SyntaxtHighlightTextComponent
public void setText(String text)
setText
in interface SyntaxtHighlightTextComponent
public String getText()
getText
in interface SyntaxtHighlightTextComponent
public void addKeyListener(KeyListener keyListener)
addKeyListener
in interface SyntaxtHighlightTextComponent