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, setSelectedIndexes
public 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.