@InterfaceAudience.Private public class ModeScreenPresenter extends Object
Modifier and Type | Field and Description |
---|---|
private Mode |
currentMode |
private int |
currentPosition |
private int |
modeDescriptionMaxLength |
private int |
modeHeaderMaxLength |
private List<Mode> |
modes |
private ModeScreenView |
modeScreenView |
private ScreenView |
nextScreenView |
private Consumer<Mode> |
resultListener |
Constructor and Description |
---|
ModeScreenPresenter(ModeScreenView modeScreenView,
Mode currentMode,
Consumer<Mode> resultListener,
ScreenView nextScreenView) |
Modifier and Type | Method and Description |
---|---|
void |
arrowDown() |
void |
arrowUp() |
void |
init() |
void |
pageDown() |
void |
pageUp() |
private void |
showMode(int pos) |
ScreenView |
transitionToNextScreen(boolean changeMode) |
private final ModeScreenView modeScreenView
private final Mode currentMode
private final Consumer<Mode> resultListener
private final ScreenView nextScreenView
private final int modeHeaderMaxLength
private final int modeDescriptionMaxLength
private int currentPosition
public ModeScreenPresenter(ModeScreenView modeScreenView, Mode currentMode, Consumer<Mode> resultListener, ScreenView nextScreenView)
public void init()
public void arrowUp()
public void arrowDown()
public void pageUp()
public void pageDown()
private void showMode(int pos)
public ScreenView transitionToNextScreen(boolean changeMode)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.