Callback of this type
represents a request to ask the user a yes/no or multiple-choice
CallbackHandler should first call
to obtain the text of the question. It should also call
to determine the message type
ERROR) and present the question to the user in a
suitable manner based on that type.
CallbackHandler must determine the
appropriate set of responses to the question. It does this by calling
getOptionType( ). The return values have the
CallbackHandlershould allow the user to respond to the question with a “yes” or a “no” (or their localized equivalents).
CallbackHandlershould allow “yes”, “no”, and “cancel” (or their localized equivalents) responses.
CallbackHandlershould allow “ok” and “cancel” (or their localized equivalents) responses.
getOptions( )and use present all strings it returns as possible responses.
In each of these cases, the
getDefaultOption( ) to determine which
response should be presented as the default response. If
getOptionType( ) returned
) returns an index into the array of options returned by
getOptions( ). Otherwise
getDefaultOption( ) returns one of the constants
When the user has selected a response to the ...