public class JRSyntaxTextArea extends java.lang.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 java.awt.event.ActionListener |
updateCaretPosition |
Constructor and Description |
---|
JRSyntaxTextArea() |
Modifier and Type | Method and Description |
---|---|
void |
addFocusListener(java.awt.event.FocusListener l) |
void |
addKeyListener(java.awt.event.KeyListener keyListener) |
void |
addLineTrackingIcon(java.lang.String tag,
int line,
javax.swing.Icon icon,
java.lang.String tip) |
void |
addLineTrackingIcon(java.lang.String tag,
int line,
javax.swing.Icon icon,
java.lang.String tip,
java.awt.Color color) |
void |
addUpdateCaretPositionActionListener(java.awt.event.ActionListener updateCaretPosition) |
javax.swing.JComponent |
asJComponent()
Returns this component as a swing
JComponent . |
void |
discardAllEdits() |
java.lang.String |
getContentType() |
javax.swing.JScrollPane |
getJScrollPane() |
javax.swing.text.JTextComponent |
getJTextComponent() |
java.lang.String |
getSelectedText() |
java.lang.String |
getText() |
void |
gotoline(int line) |
protected void |
init() |
boolean |
isEditable() |
void |
removeTrackingIcons() |
void |
removeTrackingIcons(java.lang.String tag) |
void |
searchEvent(SearchEvent e) |
void |
setContentType(java.lang.String contentType) |
void |
setEditable(boolean editable) |
void |
setlineTrackerVisible(boolean visible) |
void |
setText(java.lang.String text) |
protected java.awt.event.ActionListener updateCaretPosition
protected RSyntaxTextArea textArea
protected void init()
public void setContentType(java.lang.String contentType)
setContentType
in interface SyntaxtHighlightTextComponent
public javax.swing.JScrollPane getJScrollPane()
getJScrollPane
in interface SyntaxtHighlightTextComponent
public javax.swing.text.JTextComponent getJTextComponent()
getJTextComponent
in interface SyntaxtHighlightTextComponent
public javax.swing.JComponent asJComponent()
Component
JComponent
.asJComponent
in interface Component
JComponent
public java.lang.String getContentType()
getContentType
in interface SyntaxtHighlightTextComponent
public void addUpdateCaretPositionActionListener(java.awt.event.ActionListener updateCaretPosition)
addUpdateCaretPositionActionListener
in interface SyntaxtHighlightTextComponent
public void setText(java.lang.String text)
setText
in interface SyntaxtHighlightTextComponent
public java.lang.String getText()
getText
in interface SyntaxtHighlightTextComponent
public void addKeyListener(java.awt.event.KeyListener keyListener)
addKeyListener
in interface SyntaxtHighlightTextComponent
public void searchEvent(SearchEvent e)
public java.lang.String getSelectedText()
public void discardAllEdits()
discardAllEdits
in interface SyntaxtHighlightTextComponent
public void removeTrackingIcons()
removeTrackingIcons
in interface SyntaxtHighlightTextComponent
public void addLineTrackingIcon(java.lang.String tag, int line, javax.swing.Icon icon, java.lang.String tip)
addLineTrackingIcon
in interface SyntaxtHighlightTextComponent
public void addLineTrackingIcon(java.lang.String tag, int line, javax.swing.Icon icon, java.lang.String tip, java.awt.Color color)
addLineTrackingIcon
in interface SyntaxtHighlightTextComponent
public void removeTrackingIcons(java.lang.String tag)
removeTrackingIcons
in interface SyntaxtHighlightTextComponent
public void gotoline(int line)
gotoline
in interface SyntaxtHighlightTextComponent
public void setEditable(boolean editable)
setEditable
in interface SyntaxtHighlightTextComponent
public boolean isEditable()
isEditable
in interface SyntaxtHighlightTextComponent
public void addFocusListener(java.awt.event.FocusListener l)
addFocusListener
in interface SyntaxtHighlightTextComponent
public void setlineTrackerVisible(boolean visible)