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 -如果选择允许;否则为false
IllegalArgumentException -如果
prompt是null或空字符串,如果
choices长度为0,如果从
choices任何元素为null或空,或如果
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.