| |
|
| org.zkoss.zul.impl.XulElement org.zkoss.zul.Window org.zkoss.zul.impl.MessageboxDlg
MessageboxDlg | public class MessageboxDlg extends Window (Code) | | Used with
Messagebox to implement a message box.
author: tomyeh |
Field Summary | |
final public static int | ABORT A Abort button. | final public static int | CANCEL A Cancel button. | final public static int | IGNORE A IGNORE button. | final public static int | NO A No button. | final public static int | OK A OK button. | final public static int | RETRY A Retry button. | final public static int | YES A Yes button. |
Method Summary | |
public void | endModal(int button) Called only internally. | public int | getResult() Returns the result which is the button being pressed. | public void | onCancel() | public void | onOK() | public void | setButtons(int buttons) Sets what buttons are allowed. | public void | setFocus(int button) Sets the focus.
Parameters: button - the button to gain the focus. |
ABORT | final public static int ABORT(Code) | | A Abort button.
|
CANCEL | final public static int CANCEL(Code) | | A Cancel button.
|
IGNORE | final public static int IGNORE(Code) | | A IGNORE button.
|
NO | final public static int NO(Code) | | A No button.
|
OK | final public static int OK(Code) | | A OK button.
|
RETRY | final public static int RETRY(Code) | | A Retry button.
|
YES | final public static int YES(Code) | | A Yes button.
|
endModal | public void endModal(int button)(Code) | | Called only internally.
|
getResult | public int getResult()(Code) | | Returns the result which is the button being pressed.
|
onCancel | public void onCancel()(Code) | | |
setButtons | public void setButtons(int buttons)(Code) | | Sets what buttons are allowed.
|
setFocus | public void setFocus(int button)(Code) | | Sets the focus.
Parameters: button - the button to gain the focus. If 0, the default one(i.e., the first one) is assumed. since: 3.0.0 |
|
|
|