public class RealmChoiceCallback extends ChoiceCallback
SaslClient和
SaslServer使用此回调获得领域选择列表的领域。
| Constructor and Description |
|---|
RealmChoiceCallback(String prompt, String[] choices, int defaultChoice, boolean multiple)
构造一个
RealmChoiceCallback具有提示,选择列表和默认选择。
|
allowMultipleSelections, getChoices, getDefaultChoice, getPrompt, getSelectedIndexes, setSelectedIndex, setSelectedIndexespublic RealmChoiceCallback(String prompt, String[] choices, int defaultChoice, boolean multiple)
RealmChoiceCallback与提示,选择列表和默认选择。
prompt - 用于请求领域的非空提示。
choices - 可以选择的领域的非空列表。
defaultChoice - 显示选项列表时,选择作为默认选择。
它是choices阵列的索引。
multiple - 如果允许多个选项,则为true;
否则为假
IllegalArgumentException -如果
prompt为空或空字符串,如果
choices具有为0的长度,如果来自任何元件
choices是空值或空白,或者如果
defaultChoice不落在阵列边界内
choices
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.