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
-如果选择允许;否则为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.