@InterfaceAudience.Private public abstract class AbstractScreenView extends Object implements ScreenView
ScreenView
that has the common useful methods and the default
implementations for the abstract methods.Modifier and Type | Field and Description |
---|---|
private Screen |
screen |
private Terminal |
terminal |
Constructor and Description |
---|
AbstractScreenView(Screen screen,
Terminal terminal) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelTimer() |
void |
clearTerminal() |
protected TerminalSize |
doResizeIfNecessary() |
protected Screen |
getScreen() |
protected Terminal |
getTerminal() |
protected TerminalPrinter |
getTerminalPrinter(int startRow) |
protected TerminalSize |
getTerminalSize() |
ScreenView |
handleKeyPress(KeyPress keyPress) |
ScreenView |
handleTimer() |
void |
hideCursor() |
void |
init() |
void |
refreshTerminal() |
void |
setCursorPosition(int column,
int row) |
protected void |
setTimer(long delay) |
public AbstractScreenView(Screen screen, Terminal terminal)
public void init()
init
in interface ScreenView
public ScreenView handleKeyPress(KeyPress keyPress)
handleKeyPress
in interface ScreenView
public ScreenView handleTimer()
handleTimer
in interface ScreenView
protected Terminal getTerminal()
protected void setTimer(long delay)
protected void cancelTimer()
protected TerminalPrinter getTerminalPrinter(int startRow)
@Nullable protected TerminalSize getTerminalSize()
@Nullable protected TerminalSize doResizeIfNecessary()
public void clearTerminal()
public void refreshTerminal()
public void hideCursor()
public void setCursorPosition(int column, int row)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.