| org.zkoss.zhtml.Object org.zkoss.zhtml.Messagebox
Messagebox | public class Messagebox (Code) | | Represents the message box.
You don't create
Messagebox directly. Rather, use
Messagebox.show .
A non-XHTML extension.
author: tomyeh |
Field Summary | |
final public static int | ABORT A Abort button. | final public static int | CANCEL A Cancel button. | final public static String | ERROR A symbol consisting of a white X in a circle with a red background. | final public static String | EXCLAMATION A symbol consisting of an exclamation point in a triangle with
a yellow background. | final public static int | IGNORE A IGNORE button. | final public static String | INFORMATION The same as
Messagebox.EXCLAMATION . | final public static int | NO A No button. | final public static String | NONE Contains no symbols. | final public static int | OK A OK button. | final public static String | QUESTION A symbol consisting of a question mark in a circle. | final public static int | RETRY A Retry button. | final public static int | YES A Yes button. |
Method Summary | |
final public static int | show(String message, String title, int buttons, String icon) Shows a message box and returns what button is pressed.
Parameters: title - the title. | final public static int | show(String message) Shows a message box and returns what button is pressed. | final public static int | show(int messageCode, Object[] args, int titleCode, int button, String icon) Shows a message box by specifying a message code, and returns what
button is pressed.
Parameters: titleCode - the message code for the title. | final public static int | show(int messageCode, Object arg, int titleCode, int button, String icon) Shows a message box by specifying a message code, and returns what
button is pressed.
Parameters: titleCode - the message code for the title. | final public static int | show(int messageCode, int titleCode, int button, String icon) Shows a message box by specifying a message code, and returns what
button is pressed.
Parameters: titleCode - the message code for the title. |
ABORT | final public static int ABORT(Code) | | A Abort button.
|
CANCEL | final public static int CANCEL(Code) | | A Cancel button.
|
ERROR | final public static String ERROR(Code) | | A symbol consisting of a white X in a circle with a red background.
|
EXCLAMATION | final public static String EXCLAMATION(Code) | | A symbol consisting of an exclamation point in a triangle with
a yellow background.
|
IGNORE | final public static int IGNORE(Code) | | A IGNORE button.
|
NO | final public static int NO(Code) | | A No button.
|
NONE | final public static String NONE(Code) | | Contains no symbols.
|
OK | final public static int OK(Code) | | A OK button.
|
QUESTION | final public static String QUESTION(Code) | | A symbol consisting of a question mark in a circle.
|
RETRY | final public static int RETRY(Code) | | A Retry button.
|
YES | final public static int YES(Code) | | A Yes button.
|
show | final public static int show(String message, String title, int buttons, String icon) throws InterruptedException(Code) | | Shows a message box and returns what button is pressed.
Parameters: title - the title. If null, WebApp.getAppName is used. Parameters: buttons - a combination of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE. If zero, Messagebox.OK is assumed Parameters: icon - one of predefined images: Messagebox.QUESTION,Messagebox.EXCLAMATION, Messagebox.ERROR, Messagebox.NONE, or any URI ofan image. the button being pressed (one of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE). |
show | final public static int show(String message) throws InterruptedException(Code) | | Shows a message box and returns what button is pressed.
A shortcut to show(message, null, OK, INFORMATION).
|
show | final public static int show(int messageCode, Object[] args, int titleCode, int button, String icon) throws InterruptedException(Code) | | Shows a message box by specifying a message code, and returns what
button is pressed.
Parameters: titleCode - the message code for the title. If non-positive,the default title is used. |
show | final public static int show(int messageCode, Object arg, int titleCode, int button, String icon) throws InterruptedException(Code) | | Shows a message box by specifying a message code, and returns what
button is pressed.
Parameters: titleCode - the message code for the title. If non-positive,the default title is used. |
show | final public static int show(int messageCode, int titleCode, int button, String icon) throws InterruptedException(Code) | | Shows a message box by specifying a message code, and returns what
button is pressed.
Parameters: titleCode - the message code for the title. If non-positive,the default title is used. |
|
|