public abstract class Dialog extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
defaultValue |
protected boolean |
handled |
protected String |
message |
protected String |
type |
| 构造器和说明 |
|---|
Dialog() |
Dialog(DialogType type,
String message,
String defaultValue) |
protected String type
protected String message
protected String defaultValue
protected boolean handled
public Dialog()
public Dialog(DialogType type, String message, String defaultValue)
public String type()
public String message()
public String defaultValue()
protected abstract boolean handle(boolean accept,
String text)
accept - 是否接受 dialogtext - 根据 text 来处理 dialog 比如 text = 确定,就点击确定public boolean accept(String promptText)
promptText - 在提示中输入的文本。如果对话框type不提示,则不会引起任何影响public Boolean dismiss()
Copyright © 2020–2025. All rights reserved.