Classes | |
enum | ResponseType |
Public Member Functions | |
ListResponse (int row, ResponseType responseType) | |
int | getRow () |
ResponseType | getResponseType () |
String | toString () |
Static Public Member Functions | |
static Optional< ListResponse > | fromString (String value) |
Static Public Attributes | |
static final ListResponse | EMPTY = new ListResponse(0, ResponseType.SELECT_ITEM) |
This represents an action that was performed on a list, and not really the state of the list. For example, when the user clicks on the list, or double-clicks. It holds the row that was selected and the action type.
enum com::thecoderscorner::menu::domain::state::ListResponse::ResponseType |
The types of response that are supported, current select - single click, invoke - double click.
Enumerator | INVOKE_ITEM | SELECT_ITEM |
---|
|
static |
Deserialize a ListResponse from a string if possible or return empty
value | the string to decode |
ResponseType com.thecoderscorner.menu.domain.state.ListResponse.getResponseType | ( | ) |
int com.thecoderscorner.menu.domain.state.ListResponse.getRow | ( | ) |