@InterfaceAudience.Private public class InputModeScreenPresenter extends Object
Modifier and Type | Field and Description |
---|---|
private int |
cursorPosition |
private List<String> |
histories |
private int |
historyPosition |
private InputModeScreenView |
inputModeScreenView |
private StringBuilder |
inputString |
private String |
message |
private Function<String,ScreenView> |
resultListener |
Constructor and Description |
---|
InputModeScreenPresenter(InputModeScreenView inputModeScreenView,
String message,
List<String> histories,
Function<String,ScreenView> resultListener) |
Modifier and Type | Method and Description |
---|---|
void |
arrowDown() |
void |
arrowLeft() |
void |
arrowRight() |
void |
arrowUp() |
void |
backspace() |
void |
character(Character character) |
void |
delete() |
void |
end() |
void |
home() |
void |
init() |
ScreenView |
returnToNextScreen() |
private final InputModeScreenView inputModeScreenView
private final Function<String,ScreenView> resultListener
private StringBuilder inputString
private int cursorPosition
private int historyPosition
public InputModeScreenPresenter(InputModeScreenView inputModeScreenView, String message, @Nullable List<String> histories, Function<String,ScreenView> resultListener)
public void init()
public ScreenView returnToNextScreen()
public void backspace()
public void delete()
public void arrowLeft()
public void arrowRight()
public void home()
public void end()
public void arrowUp()
public void arrowDown()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.