Class ModeScreenView
java.lang.Object
org.apache.hadoop.hbase.hbtop.screen.AbstractScreenView
org.apache.hadoop.hbase.hbtop.screen.mode.ModeScreenView
- All Implemented Interfaces:
ScreenView
The screen where we can choose the
Mode
in the top screen.-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final ModeScreenPresenter
private static final int
-
Constructor Summary
ConstructorDescriptionModeScreenView
(Screen screen, Terminal terminal, Mode currentMode, Consumer<Mode> resultListener, ScreenView nextScreenView) -
Method Summary
Modifier and TypeMethodDescriptionhandleKeyPress
(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) Methods inherited from class org.apache.hadoop.hbase.hbtop.screen.AbstractScreenView
cancelTimer, clearTerminal, doResizeIfNecessary, getScreen, getTerminal, getTerminalPrinter, getTerminalSize, handleTimer, hideCursor, refreshTerminal, setCursorPosition, setTimer
-
Field Details
-
SCREEN_DESCRIPTION_START_ROW
- See Also:
-
MODE_START_ROW
- See Also:
-
modeScreenPresenter
-
-
Constructor Details
-
ModeScreenView
public ModeScreenView(Screen screen, Terminal terminal, Mode currentMode, Consumer<Mode> resultListener, ScreenView nextScreenView)
-
-
Method Details
-
init
- Specified by:
init
in interfaceScreenView
- Overrides:
init
in classAbstractScreenView
-
handleKeyPress
- Specified by:
handleKeyPress
in interfaceScreenView
- Overrides:
handleKeyPress
in classAbstractScreenView
-
showModeScreen
public void showModeScreen(Mode currentMode, List<Mode> modes, int currentPosition, int modeHeaderMaxLength, int modeDescriptionMaxLength) -
showScreenDescription
-
showMode
-