public class ExtendedChoiceCallback extends ChoiceCallback implements ExtendedCallback
ChoiceCallback
which supports the extended callback interface.Constructor and Description |
---|
ExtendedChoiceCallback(String prompt,
String[] choices,
int defaultChoice,
boolean multipleSelectionsAllowed,
boolean optional)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isOptional()
Determine if this callback is optional.
|
boolean |
needsInformation()
Determine if this callback is requesting information.
|
allowMultipleSelections, getChoices, getDefaultChoice, getPrompt, getSelectedIndexes, setSelectedIndex, setSelectedIndexes
public ExtendedChoiceCallback(String prompt, String[] choices, int defaultChoice, boolean multipleSelectionsAllowed, boolean optional)
prompt
- the text prompt (must not be null
)choices
- the choices (must not be null
)defaultChoice
- the default choice as an index into the choices
arraymultipleSelectionsAllowed
- true
if multiple selections are allowedoptional
- true
if the support for the callback is optionalpublic boolean isOptional()
ExtendedCallback
isOptional
in interface ExtendedCallback
true
if the callback is optional, false
if it is mandatorypublic boolean needsInformation()
ExtendedCallback
needsInformation
in interface ExtendedCallback
true
if the callback is requesting information, false
if it is only providing informationCopyright © 2017 JBoss by Red Hat. All rights reserved.