public class TextInputCallback extends Object implements Callback, Serializable
基础安全服务实例,并通过一个TextInputCallback到handle一个的方法CallbackHandler检索普通的文本信息。
CallbackHandler , Serialized Form
| Constructor and Description |
|---|
TextInputCallback(String prompt)
构造一个
TextInputCallback提示符。
|
TextInputCallback(String prompt, String defaultText)
构造具有提示和默认输入值的
TextInputCallback 。
|
public TextInputCallback(String prompt)
TextInputCallback与提示。
prompt - 用于请求信息的提示。
IllegalArgumentException - 如果
prompt为空,或者如果
prompt的长度为0。
public TextInputCallback(String prompt, String defaultText)
TextInputCallback 。
prompt - 用于请求信息的提示。
defaultText - 要用作显示的提示符的默认文本的文本。
IllegalArgumentException - 如果
prompt为空,如果
prompt的长度为0,如果
defaultText为空,或者如果
defaultText的长度为0。
public String getPrompt()
public String getDefaultText()
TextInputCallback未实例化为defaultText,
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.