public class TextInputCallback extends Object implements Callback, Serializable
基本的安全服务,通过TextInputCallback实例化的CallbackHandler的handle方法检索通用文本信息。
CallbackHandler,
Serialized Form
| Constructor and Description |
|---|
TextInputCallback(String prompt)
构建一个提示
TextInputCallback。
|
TextInputCallback(String prompt, String defaultText)
构造一个提示和默认输入值的
TextInputCallback。
|
public TextInputCallback(String prompt)
TextInputCallback。
prompt用于请求的信息提示。
IllegalArgumentException -如果
prompt长度为0
prompt无效或。
public TextInputCallback(String prompt, String defaultText)
TextInputCallback。
prompt用于请求的信息提示。
defaultText -用于显示提示的默认文本的文本。
IllegalArgumentException -如果
prompt是无效的,如果
prompt长度为0,如果
defaultText长度为0
defaultText无效或。
public String getPrompt()
public String getDefaultText()
TextInputCallback没有实例化
defaultText。
public String getText()
setText(java.lang.String)
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.