public class ConfirmationCallback extends AbstractPromptCallback
| Modifier and Type | Field and Description |
|---|---|
static int |
CANCEL |
static int |
ERROR |
static int |
INFORMATION |
static int |
NO |
static int |
OK |
static int |
OK_CANCEL_OPTION |
static int |
UNSPECIFIED_OPTION |
static int |
WARNING |
static int |
YES |
static int |
YES_NO_CANCEL_OPTION |
static int |
YES_NO_OPTION |
prompt_id, content, VALUE| Constructor and Description |
|---|
ConfirmationCallback() |
ConfirmationCallback(org.json.JSONObject jsonObject,
int index) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultOption()
Get the defaultChoice.
|
int |
getMessageType() |
java.util.List<java.lang.String> |
getOptions()
Get the list of options.
|
int |
getOptionType() |
int |
getSelectedIndex() |
java.lang.String |
getType()
Return the type of the Callback, the type name should align with the Callback type returned
from AM
|
protected void |
setAttribute(java.lang.String name,
java.lang.Object value) |
void |
setSelectedIndex(int selection)
Set the selected choice.
|
getPromptget_id, getContent, getContentAsJson, getInputValue, getInputValue, getName, setContent, setValue, setValuepublic static final int UNSPECIFIED_OPTION
public static final int YES_NO_OPTION
public static final int YES_NO_CANCEL_OPTION
public static final int OK_CANCEL_OPTION
public static final int YES
public static final int NO
public static final int CANCEL
public static final int OK
public static final int INFORMATION
public static final int WARNING
public static final int ERROR
public ConfirmationCallback(org.json.JSONObject jsonObject,
int index)
throws org.json.JSONException
org.json.JSONExceptionpublic ConfirmationCallback()
protected void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in class AbstractPromptCallbackpublic void setSelectedIndex(int selection)
selection - the selection represented as an index into the
options list.public java.lang.String getType()
Callbackpublic java.util.List<java.lang.String> getOptions()
public int getDefaultOption()
options list.public int getOptionType()
public int getMessageType()
public int getSelectedIndex()