@InterfaceAudience.Private public class ModeScreenView extends AbstractScreenView
Mode in the top screen.| Modifier and Type | Field and Description | 
|---|---|
| private static int | MODE_START_ROW | 
| private ModeScreenPresenter | modeScreenPresenter | 
| private static int | SCREEN_DESCRIPTION_START_ROW | 
| Constructor and Description | 
|---|
| ModeScreenView(Screen screen,
              Terminal terminal,
              Mode currentMode,
              Consumer<Mode> resultListener,
              ScreenView nextScreenView) | 
| Modifier and Type | Method and Description | 
|---|---|
| ScreenView | handleKeyPress(KeyPress keyPress) | 
| void | init() | 
| void | showMode(int pos,
        Mode mode,
        boolean selected,
        int modeHeaderMaxLength,
        int modeDescriptionMaxLength) | 
| void | showModeScreen(Mode currentMode,
              List<Mode> modes,
              int currentPosition,
              int modeHeaderMaxLength,
              int modeDescriptionMaxLength) | 
| private void | showScreenDescription(Mode currentMode) | 
cancelTimer, clearTerminal, doResizeIfNecessary, getScreen, getTerminal, getTerminalPrinter, getTerminalSize, handleTimer, hideCursor, refreshTerminal, setCursorPosition, setTimerprivate static final int SCREEN_DESCRIPTION_START_ROW
private static final int MODE_START_ROW
private final ModeScreenPresenter modeScreenPresenter
public ModeScreenView(Screen screen, Terminal terminal, Mode currentMode, Consumer<Mode> resultListener, ScreenView nextScreenView)
public void init()
init in interface ScreenViewinit in class AbstractScreenViewpublic ScreenView handleKeyPress(KeyPress keyPress)
handleKeyPress in interface ScreenViewhandleKeyPress in class AbstractScreenViewpublic void showModeScreen(Mode currentMode, List<Mode> modes, int currentPosition, int modeHeaderMaxLength, int modeDescriptionMaxLength)
private void showScreenDescription(Mode currentMode)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.