OP
- supported list of operationspublic abstract class CliView<OP extends Enum<OP>,OUT> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
offsetX |
protected int |
offsetY |
protected org.jline.terminal.Terminal |
terminal |
Constructor and Description |
---|
CliView(org.jline.terminal.Terminal terminal) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
cleanUp() |
void |
clearTerminal() |
protected void |
close() |
protected void |
close(OUT result) |
protected void |
close(SqlExecutionException e) |
protected abstract List<org.jline.utils.AttributedString> |
computeFooterLines() |
protected abstract List<org.jline.utils.AttributedString> |
computeHeaderLines() |
protected abstract List<org.jline.utils.AttributedString> |
computeMainHeaderLines() |
protected abstract List<org.jline.utils.AttributedString> |
computeMainLines() |
protected void |
display() |
protected abstract void |
evaluate(OP operation,
String binding) |
protected List<org.jline.utils.AttributedString> |
getFooterLines() |
protected List<org.jline.utils.AttributedString> |
getHeaderLines() |
protected int |
getHeight() |
protected abstract org.jline.keymap.KeyMap<OP> |
getKeys() |
protected List<org.jline.utils.AttributedString> |
getMainHeaderLines() |
protected List<org.jline.utils.AttributedString> |
getMainLines() |
OUT |
getResult() |
int |
getTerminalHeight() |
int |
getTerminalWidth() |
protected abstract String |
getTitle() |
protected org.jline.utils.AttributedString |
getTitleLine() |
protected int |
getTotalMainWidth() |
protected int |
getVisibleMainHeight() |
protected int |
getWidth() |
protected abstract void |
init()
Starts threads if necessary.
|
protected boolean |
isRunning() |
void |
open() |
protected void |
resetAllParts()
Must be called when values in one or more parts have changed.
|
protected void |
resetMainPart()
Must be called when values in the main part (main header or main) have changed.
|
protected void |
scrollDown() |
protected void |
scrollDown(int n) |
protected void |
scrollLeft() |
protected void |
scrollRight() |
protected void |
scrollUp() |
protected final org.jline.terminal.Terminal terminal
protected int offsetX
protected int offsetY
public void open()
public OUT getResult()
protected boolean isRunning()
protected void close()
protected void close(SqlExecutionException e)
protected void close(OUT result)
protected void display()
protected void scrollLeft()
protected void scrollRight()
protected void scrollUp()
protected void scrollDown()
protected void scrollDown(int n)
protected int getVisibleMainHeight()
protected List<org.jline.utils.AttributedString> getHeaderLines()
protected List<org.jline.utils.AttributedString> getMainHeaderLines()
protected List<org.jline.utils.AttributedString> getMainLines()
protected List<org.jline.utils.AttributedString> getFooterLines()
protected int getTotalMainWidth()
protected org.jline.utils.AttributedString getTitleLine()
protected void resetAllParts()
protected void resetMainPart()
protected int getWidth()
protected int getHeight()
public void clearTerminal()
public int getTerminalWidth()
public int getTerminalHeight()
protected abstract void init()
protected abstract org.jline.keymap.KeyMap<OP> getKeys()
protected abstract String getTitle()
protected abstract List<org.jline.utils.AttributedString> computeHeaderLines()
protected abstract List<org.jline.utils.AttributedString> computeMainHeaderLines()
protected abstract List<org.jline.utils.AttributedString> computeMainLines()
protected abstract List<org.jline.utils.AttributedString> computeFooterLines()
protected abstract void cleanUp()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.