public class SmOptionPane extends SmDialog
构造器和说明 |
---|
SmOptionPane()
构造函数
|
SmOptionPane(javax.swing.JDialog owner)
构造函数
|
SmOptionPane(javax.swing.JFrame owner)
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getCheckBoxText() |
boolean |
isCheckBoxSelected() |
SmOptionPane |
setButtonCancelText(java.lang.String cancelText)
设置取消按钮的文本信息
|
SmOptionPane |
setButtonNoText(java.lang.String noText)
设置否按钮的文本信息
|
SmOptionPane |
setButtonOkText(java.lang.String okText)
设置确定按钮的文本信息
|
SmOptionPane |
setCheckBoxEnable(boolean enable) |
SmOptionPane |
setCheckBoxSelected(boolean selected) |
SmOptionPane |
setCheckBoxText(java.lang.String text) |
SmOptionPane |
setCheckBoxVisible(boolean visible) |
int |
showConfirmDialog(java.lang.String message)
展示默认提示框
|
int |
showConfirmDialogWithCancel(java.lang.String message)
展示含有取消按钮的提示框
|
int |
showConfirmDialogYesNo(java.lang.String message)
展示含有确定、取消按钮的提示框
|
int |
showDialog(java.lang.String message)
显示提示信息
|
int |
showErrorDialog(java.lang.String message)
展示错误提示框
|
int |
showMessageDialog(java.lang.String message)
展示信息提示框
|
int |
showWarningDialog(java.lang.String message)
展示错误提示框
|
getDialogHelpProvider, getDialogResult, resize, setDialogHelpProvider, setDialogResult, setLocationRelativeTo, setUndecorated, showDialog, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
public SmOptionPane()
public SmOptionPane(javax.swing.JFrame owner)
owner
-public SmOptionPane(javax.swing.JDialog owner)
owner
-public boolean isCheckBoxSelected()
public SmOptionPane setCheckBoxText(java.lang.String text)
public SmOptionPane setCheckBoxEnable(boolean enable)
public SmOptionPane setCheckBoxVisible(boolean visible)
public SmOptionPane setCheckBoxSelected(boolean selected)
public int showMessageDialog(java.lang.String message)
message
- 提示信息public int showConfirmDialog(java.lang.String message)
message
- 提示信息public int showConfirmDialogWithCancel(java.lang.String message)
message
- 提示信息public int showErrorDialog(java.lang.String message)
message
- 提示信息public int showWarningDialog(java.lang.String message)
message
- 提示信息public int showConfirmDialogYesNo(java.lang.String message)
message
- 提示信息public int showDialog(java.lang.String message)
message
- 提示信息public java.lang.String getCheckBoxText()
public SmOptionPane setButtonNoText(java.lang.String noText)
noText
- 否按钮的文本信息public SmOptionPane setButtonCancelText(java.lang.String cancelText)
cancelText
- 取消按钮的文本信息public SmOptionPane setButtonOkText(java.lang.String okText)
okText
- 确定按钮的文本信息