public interface RequestOperation
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RequestOperation.Answer
Definition of an answer object.
|
static class |
RequestOperation.Kind
The kind of the operation.
|
| Modifier and Type | Field and Description |
|---|---|
static OperationType<RequestOperation> |
TYPE
The operation's type.
|
| Modifier and Type | Method and Description |
|---|---|
RequestOperation.Answer |
addAnswer(String label)
Add an answer with the given label.
|
RequestOperation.Answer |
addCancel()
Adds an answer with a language dependent label for "cancel".
|
RequestOperation.Answer |
addNo()
Adds an answer with a language dependent label for "no".
|
RequestOperation.Answer |
addOk()
Adds an answer with a language dependent label for "ok".
|
RequestOperation.Answer |
addYes()
Adds an answer with a language dependent label for "yes".
|
RequestOperation.Answer |
perform(String question)
Asks the given question, returning the selected answer.
|
void |
setInitialAnswer(RequestOperation.Answer answer)
Defines the answer to be initially selected.
|
void |
setKind(RequestOperation.Kind kind)
Set the kind of request to be answered.
|
void |
setTitle(String title)
Set the title of the selection.
|
static final OperationType<RequestOperation> TYPE
void setTitle(String title)
title - The selection operation's title.void setKind(@NotNull RequestOperation.Kind kind)
RequestOperation.Kind.INFO.kind - The request kind.RequestOperation.Answer addAnswer(String label)
label - The label.RequestOperation.Answer addYes()
RequestOperation.Answer addNo()
RequestOperation.Answer addOk()
RequestOperation.Answer addCancel()
nullvoid setInitialAnswer(RequestOperation.Answer answer)
answer - The initial answer.@Nullable RequestOperation.Answer perform(@NotNull String question)
question - The question to be asked.null, if the request was closed with no answer.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408