ConfirmationCallback

Callback to retrieve the selected option from a list of options

Constructors

Link copied to clipboard
constructor()
constructor(jsonObject: JSONObject, index: Int)

Properties

Link copied to clipboard
protected open var _id: Int
Link copied to clipboard
val CANCEL: Int = 2
Link copied to clipboard
protected open var content: String
Link copied to clipboard
private open var defaultOption: Int
Get the defaultChoice.
Link copied to clipboard
val ERROR: Int = 2
Link copied to clipboard
val INFORMATION: Int = 0
Link copied to clipboard
private open var messageType: Int
Link copied to clipboard
val NO: Int = 1
Link copied to clipboard
val OK: Int = 3
Link copied to clipboard
Link copied to clipboard
private open var options: List<String>
Get the list of options.
Link copied to clipboard
private open var optionType: Int
Link copied to clipboard
open var prompt: String
Get the prompt for this callback.
Link copied to clipboard
private open var selectedIndex: Int
Link copied to clipboard
Link copied to clipboard
protected val VALUE: String = "value"
Link copied to clipboard
val WARNING: Int = 1
Link copied to clipboard
val YES: Int = 0
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun get_id(): Int
Get the _id received from server
Link copied to clipboard
open fun getContent(): String
Get the callback content
Link copied to clipboard
protected open fun getContentAsJson(): JSONObject
Link copied to clipboard
open fun getInputValue(): Any
Get the first value for input
open fun getInputValue(index: Int): Any
Get the value for input
Link copied to clipboard
protected open fun getName(jsonObject: JSONObject): String
Link copied to clipboard
open fun getType(): String
Return the type of the Callback, the type name should align with the Callback type returned from AM
Link copied to clipboard
private open fun prepareOptions(array: JSONArray)
Populate the options attribute
Link copied to clipboard
protected open fun setAttribute(name: String, value: Any)
Link copied to clipboard
protected open fun setContent(jsonObject: JSONObject)
Sets the value of the Callback
Link copied to clipboard
open fun setSelectedIndex(selection: Int)
Set the selected choice.
Link copied to clipboard
protected open fun setValue(value: Any)
Set the first value for input
protected open fun setValue(value: Any, index: Int)
Set the value for the input.