| java.lang.Object org.zkoss.zul.Messagebox
Messagebox | public class Messagebox (Code) | | Represents the message box.
You don't create
Messagebox directly. Rather, use
Messagebox.show .
A non-XUL 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 A symbol of a lowercase letter i in a circle. | 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 | |
public static String | getTemplate() Returns the template used to create the message dialog. | public static void | setTemplate(String uri) Sets the template used to create the message dialog. | 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, String title, int buttons, String icon, int focus) 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 buttons, 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[] args, int titleCode, int buttons, String icon, int focus) 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 buttons, 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 buttons, String icon, int focus) 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 buttons, 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 buttons, String icon, int focus) 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.
|
INFORMATION | final public static String INFORMATION(Code) | | A symbol of a lowercase letter i in a circle.
|
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.
|
getTemplate | public static String getTemplate()(Code) | | Returns the template used to create the message dialog.
|
setTemplate | public static void setTemplate(String uri)(Code) | | Sets the template used to create the message dialog.
The template must follow the default template:
~./zul/html/messagebox.zul
In other words, just adjust the label and layout and don't
change the component's ID.
|
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, String title, int buttons, String icon, int focus) 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. Parameters: focus - one of button to have to focus. If 0, the first buttonwill gain the focus. One of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE. the button being pressed (one of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE). since: 3.0.0 |
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 buttons, 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[] args, int titleCode, int buttons, String icon, int focus) 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. Parameters: focus - one of button to have to focus. If 0, the first buttonwill gain the focus. One of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE. since: 3.0.0 |
show | final public static int show(int messageCode, Object arg, int titleCode, int buttons, 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 buttons, String icon, int focus) 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. Parameters: focus - one of button to have to focus. If 0, the first buttonwill gain the focus. One of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE. since: 3.0.0 |
show | final public static int show(int messageCode, int titleCode, int buttons, 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 buttons, String icon, int focus) 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. Parameters: focus - one of button to have to focus. If 0, the first buttonwill gain the focus. One of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE. since: 3.0.0 |
|
|