public interface JTextEditor<T> extends JViewer<T>, Component, ChangeListenerSupport
Modifier and Type | Interface and Description |
---|---|
static interface |
JTextEditor.UpdateCaretPositionActionEvent |
Modifier and Type | Method and Description |
---|---|
void |
addUpdateCaretPositionActionListener(java.awt.event.ActionListener actionlistener) |
void |
clean() |
T |
getContents() |
javax.swing.text.JTextComponent |
getJTextComponent() |
int |
getLineCount() |
java.lang.String |
getMimetype() |
void |
gotoline(int line) |
default boolean |
isEditable() |
default boolean |
isEnabled() |
boolean |
isModified() |
void |
selectLine(int line) |
void |
setContents(T data) |
default void |
setEditable(boolean editable) |
default void |
setEnabled(boolean editable) |
void |
setMimetype(java.lang.String mimeType) |
getBytes, getFactory
asJComponent
addChangeListener, getChangeListeners, hasChangeListeners, removeAllChangeListener, removeChangeListener
void setMimetype(java.lang.String mimeType)
java.lang.String getMimetype()
getMimetype
in interface JViewer<T>
void setContents(T data)
setContents
in interface JViewer<T>
T getContents()
getContents
in interface JViewer<T>
javax.swing.text.JTextComponent getJTextComponent()
void selectLine(int line)
void gotoline(int line)
int getLineCount()
void addUpdateCaretPositionActionListener(java.awt.event.ActionListener actionlistener)
boolean isModified()
isModified
in interface JViewer<T>
default boolean isEditable()
isEditable
in interface JViewer<T>
default void setEditable(boolean editable)
setEditable
in interface JViewer<T>
default void setEnabled(boolean editable)
setEnabled
in interface JViewer<T>