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 SyntaxtHighlightTextComponent
public JScrollPane getJScrollPane()
getJScrollPane
in interface SyntaxtHighlightTextComponent
public JTextComponent getJTextComponent()
getJTextComponent
in interface SyntaxtHighlightTextComponent
public JComponent asJComponent()
Component
JComponent
.asJComponent
in interface Component
JComponent
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
public void searchEvent(SearchEvent e)
public String getSelectedText()
public void discardAllEdits()
discardAllEdits
in interface SyntaxtHighlightTextComponent
public void removeTrackingIcons()
removeTrackingIcons
in interface SyntaxtHighlightTextComponent
public void addLineTrackingIcon(String tag, int line, Icon icon, String tip)
addLineTrackingIcon
in interface SyntaxtHighlightTextComponent
public void addLineTrackingIcon(String tag, int line, Icon icon, String tip, Color color)
addLineTrackingIcon
in interface SyntaxtHighlightTextComponent
public void removeTrackingIcons(String tag)
removeTrackingIcons
in interface SyntaxtHighlightTextComponent
public void gotoline(int line)
gotoline
in interface SyntaxtHighlightTextComponent