public class JTextEditorRSyntaxTextArea extends AbstractJViewer implements JTextEditor
JTextEditor.UpdateCaretPositionActionEvent
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
Constructor and Description |
---|
JTextEditorRSyntaxTextArea() |
JTextEditorRSyntaxTextArea(ViewerFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener) |
void |
addUpdateCaretPositionActionListener(java.awt.event.ActionListener al) |
javax.swing.JComponent |
asJComponent()
Returns this component as a swing
JComponent . |
void |
clean() |
byte[] |
getBytes() |
javax.swing.event.ChangeListener[] |
getChangeListeners() |
java.lang.String |
getContents() |
javax.swing.text.JTextComponent |
getJTextComponent() |
int |
getLineCount() |
java.lang.String |
getMimetype() |
void |
gotoline(int i) |
boolean |
hasChangeListeners() |
boolean |
isEditable() |
boolean |
isModified() |
void |
removeAllChangeListener() |
void |
removeChangeListener(javax.swing.event.ChangeListener listener) |
void |
selectLine(int line) |
void |
setContents(byte[] contents) |
void |
setContents(java.lang.Object data) |
void |
setContents(java.lang.String text) |
void |
setEditable(boolean editable) |
void |
setMimetype(java.lang.String mimeType) |
getFactory, isEnabled, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEnabled, setEnabled
getFactory
public JTextEditorRSyntaxTextArea(ViewerFactory factory)
public JTextEditorRSyntaxTextArea()
public void setMimetype(java.lang.String mimeType)
setMimetype
in interface JTextEditor
public java.lang.String getMimetype()
getMimetype
in interface JTextEditor
getMimetype
in interface JViewer
getMimetype
in class AbstractJViewer
public void setContents(byte[] contents)
public void setContents(java.lang.String text)
public void setContents(java.lang.Object data)
setContents
in interface JTextEditor
setContents
in interface JViewer
setContents
in class AbstractJViewer
public java.lang.String getContents()
getContents
in interface JTextEditor
getContents
in interface JViewer
getContents
in class AbstractJViewer
public byte[] getBytes()
getBytes
in interface JViewer
getBytes
in class AbstractJViewer
public void clean()
clean
in interface JTextEditor
clean
in interface JViewer
clean
in class AbstractJViewer
public javax.swing.text.JTextComponent getJTextComponent()
getJTextComponent
in interface JTextEditor
public void selectLine(int line)
selectLine
in interface JTextEditor
public void gotoline(int i)
gotoline
in interface JTextEditor
public int getLineCount()
getLineCount
in interface JTextEditor
public void addUpdateCaretPositionActionListener(java.awt.event.ActionListener al)
addUpdateCaretPositionActionListener
in interface JTextEditor
public boolean isModified()
isModified
in interface JTextEditor
isModified
in interface JViewer
isModified
in class AbstractJViewer
public javax.swing.JComponent asJComponent()
Component
JComponent
.asJComponent
in interface Component
JComponent
public void addChangeListener(javax.swing.event.ChangeListener listener)
addChangeListener
in interface ChangeListenerSupport
public javax.swing.event.ChangeListener[] getChangeListeners()
getChangeListeners
in interface ChangeListenerSupport
public void removeChangeListener(javax.swing.event.ChangeListener listener)
removeChangeListener
in interface ChangeListenerSupport
public void removeAllChangeListener()
removeAllChangeListener
in interface ChangeListenerSupport
public boolean hasChangeListeners()
hasChangeListeners
in interface ChangeListenerSupport
public void setEditable(boolean editable)
setEditable
in interface JTextEditor
setEditable
in interface JViewer
setEditable
in class AbstractJViewer
public boolean isEditable()
isEditable
in interface JTextEditor
isEditable
in interface JViewer
isEditable
in class AbstractJViewer