@InterfaceAudience.Private public class HelpScreenView extends AbstractScreenView
Modifier and Type | Field and Description |
---|---|
private static int |
COMMAND_DESCRIPTION_START_ROW |
private HelpScreenPresenter |
helpScreenPresenter |
private static int |
SCREEN_DESCRIPTION_START_ROW |
Constructor and Description |
---|
HelpScreenView(Screen screen,
Terminal terminal,
long refreshDelay,
ScreenView nextScreenView) |
Modifier and Type | Method and Description |
---|---|
ScreenView |
handleKeyPress(KeyPress keyPress) |
void |
init() |
private void |
showCommandDescription(TerminalPrinter terminalPrinter,
CommandDescription commandDescription) |
void |
showHelpScreen(long refreshDelay,
CommandDescription[] commandDescriptions) |
private void |
showScreenDescription(long refreshDelay) |
cancelTimer, clearTerminal, doResizeIfNecessary, getScreen, getTerminal, getTerminalPrinter, getTerminalSize, handleTimer, hideCursor, refreshTerminal, setCursorPosition, setTimer
private static final int SCREEN_DESCRIPTION_START_ROW
private static final int COMMAND_DESCRIPTION_START_ROW
private final HelpScreenPresenter helpScreenPresenter
public HelpScreenView(Screen screen, Terminal terminal, long refreshDelay, ScreenView nextScreenView)
public void init()
init
in interface ScreenView
init
in class AbstractScreenView
public ScreenView handleKeyPress(KeyPress keyPress)
handleKeyPress
in interface ScreenView
handleKeyPress
in class AbstractScreenView
public void showHelpScreen(long refreshDelay, CommandDescription[] commandDescriptions)
private void showScreenDescription(long refreshDelay)
private void showCommandDescription(TerminalPrinter terminalPrinter, CommandDescription commandDescription)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.