public class DialogCallBackValue extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DialogCallBackValue.Flag
Enumerates possible flag values which can be used to signal the outcome
of the invoked dialog.
|
| Constructor and Description |
|---|
DialogCallBackValue(DialogController source,
Object value)
Creates a new call back value with the specified source and value, and a
null opCode value. |
DialogCallBackValue(DialogController source,
Object value,
Integer opCode)
Creates a new call back value with the specified source, value and opCode
|
DialogCallBackValue(DialogController source,
Object value,
Integer opCode,
Message message)
Creates a new call back value with the specified source, value and opCode
|
DialogCallBackValue(DialogController source,
Object value,
Integer opCode,
Message message,
DialogCallBackValue.Flag flagValue)
Creates a new call back value with the specified source, value and opCode
|
| Modifier and Type | Method and Description |
|---|---|
DialogCallBackValue.Flag |
getFlagValue()
Get the flag value used to indicate the outcome of this call back.
|
Message |
getMessage()
Get the dialog call back value message.
|
Integer |
getOpCode() |
<T extends DialogController> |
getSource() |
<V> V |
getValue()
Returns the call back value.
|
void |
setFlagValue(DialogCallBackValue.Flag flagValue)
Set the flag value.
|
void |
setMessage(Message message)
Set the message of this call back.
|
void |
setOpCode(Integer opCode)
Set the op code of this call back.
|
void |
setSource(DialogController source) |
String |
toString() |
public DialogCallBackValue(DialogController source, Object value)
null opCode value.source - the source of the call back value, e.g. the dialog
doing the call back.value - the call back value.public DialogCallBackValue(DialogController source, Object value, Integer opCode)
source - the source of the call back value, e.g. the dialog
doing the call back.value - the call back value.opCode - the opCodepublic DialogCallBackValue(DialogController source, Object value, Integer opCode, Message message)
source - the source of the call back value, e.g. the dialog
doing the call back.value - the call back value.opCode - the opCodemessage - the messagepublic DialogCallBackValue(DialogController source, Object value, Integer opCode, Message message, DialogCallBackValue.Flag flagValue)
source - the source of the call back value, e.g. the dialog
doing the call back.value - the call back value.opCode - the opCodemessage - the messageflagValue - the flag valuepublic Integer getOpCode()
public <T extends DialogController> T getSource()
T - The dialog controllerClassCastException - if returned dialog controller does not match the expected
dialog controller.public <V> V getValue()
V - The expected value type.ClassCastException - if the returned type does not match the expected type.public Message getMessage()
public DialogCallBackValue.Flag getFlagValue()
public void setFlagValue(DialogCallBackValue.Flag flagValue)
flagValue - the flag valuepublic void setOpCode(Integer opCode)
opCode - the op codepublic void setSource(DialogController source)
source - the source to setpublic void setMessage(Message message)
message - the messageCopyright © 2006–2020 Esito AS. All rights reserved.