public abstract class AbstractJTextEditor extends AbstractJViewer implements JTextEditor
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractJTextEditor.UpdateCaretPositionActionEventImpl |
JTextEditor.UpdateCaretPositionActionEvent
Modifier and Type | Field and Description |
---|---|
protected ChangeListenerHelper |
changeListeners |
protected static Logger |
LOGGER |
protected javax.swing.JPanel |
panel |
protected java.awt.event.ActionListener |
updateCaretPositionListener |
Constructor and Description |
---|
AbstractJTextEditor(TextEditorManager factory) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener) |
void |
addUpdateCaretPositionActionListener(java.awt.event.ActionListener listener) |
javax.swing.JComponent |
asJComponent()
Returns this component as a swing
JComponent . |
javax.swing.event.ChangeListener[] |
getChangeListeners() |
int |
getLineCount() |
void |
gotoline(int line) |
boolean |
hasChangeListeners() |
boolean |
isModified() |
void |
removeAllChangeListener() |
void |
removeChangeListener(javax.swing.event.ChangeListener listener) |
void |
selectLine(int line) |
clean, getBytes, getContents, getFactory, getMimetype, isEditable, isEnabled, setContents, setEditable, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clean, getContents, getJTextComponent, getMimetype, isEditable, isEnabled, setContents, setEditable, setEnabled, setMimetype
getBytes, getFactory
protected static final Logger LOGGER
protected javax.swing.JPanel panel
protected ChangeListenerHelper changeListeners
protected java.awt.event.ActionListener updateCaretPositionListener
public AbstractJTextEditor(TextEditorManager factory)
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 selectLine(int line)
selectLine
in interface JTextEditor
public void gotoline(int line)
gotoline
in interface JTextEditor
public int getLineCount()
getLineCount
in interface JTextEditor
public void addUpdateCaretPositionActionListener(java.awt.event.ActionListener listener)
addUpdateCaretPositionActionListener
in interface JTextEditor
public boolean isModified()
isModified
in interface JTextEditor
isModified
in interface JViewer
isModified
in class AbstractJViewer