public class SimpleConsoleEditor extends AbstractConsoleEditor
DEFAULT_ESCAPE_TIMEOUT, DIRTY_SIGN, EDITOR_NAME, ESCAPE, READ_EXPIREDCARRIEGE_RETURN, NEW_LINE| Constructor and Description |
|---|
SimpleConsoleEditor(jline.Terminal terminal) |
| Modifier and Type | Method and Description |
|---|---|
Command |
create(EditorOperation operation)
Creates a command.
|
void |
redrawCoords()
Redraws the cursor coordinates if the flavor supports that.
|
void |
redrawFooter()
Refreshes the footer that displays the current line and column.
|
void |
redrawHeader()
Redraws the header of the editor (if exists).
|
void |
setDirty(Boolean dirty)
Marks that the editor has unsaved changes.
|
void |
setOpenEnabled(boolean openEnabled)
Allows/disallows the
ConsoleEditor to open files. |
void |
setReadOnly(boolean readOnly)
Sets/Unsets the
ConsoleEditor to read only mode. |
backspace, clearLine, close, delete, displayText, end, findNext, findPrevious, flush, getColumn, getContent, getContent, getDelegate, getDisplayAs, getFile, getFooterSize, getHeaderSize, getKeys, getLine, getTerminal, getTheme, getTitle, getUndoContext, hide, highLight, home, init, isDirty, isOpenEnabled, isReadOnly, lines, mergeLine, move, moveDown, moveLeft, moveRight, moveUp, newLine, onCommand, open, open, put, read, readBoolean, readBoolean, readLine, readLine, redrawText, restoreCursorPosition, save, saveCursorPosition, scrollDown, scrollUp, setDisplayAs, setFooterSize, setHeaderSize, setKeys, setTheme, setTitle, show, start, stoppublic void redrawHeader()
ConsoleEditorpublic void redrawFooter()
public void redrawCoords()
public Command create(EditorOperation operation) throws CommandNotFoundException
CommandFactoryCommandNotFoundExceptionpublic void setDirty(Boolean dirty)
EditorsetDirty in interface Editor<String>setDirty in class AbstractConsoleEditorpublic void setReadOnly(boolean readOnly)
ConsoleEditorConsoleEditor to read only mode.setReadOnly in interface ConsoleEditorsetReadOnly in class AbstractConsoleEditorpublic void setOpenEnabled(boolean openEnabled)
ConsoleEditorConsoleEditor to open files.setOpenEnabled in interface ConsoleEditorsetOpenEnabled in class AbstractConsoleEditorCopyright © 2013. All Rights Reserved.