@FunctionalInterface public interface IMessageBox
The processing is model for the message box reply is a callback and can be aborted in case of client session failure if directed to a specific client session and it is closed. If the message box is displayed for an application session and that one is closed, no callback will be done.
Modifier and Type | Interface and Description |
---|---|
static class |
IMessageBox.Icon
The enum's for icons.
|
Modifier and Type | Field and Description |
---|---|
static int |
ICON_ERROR
Icon option: error/critical/stop sign.
|
static int |
ICON_INFORMATION
Icon option: informational.
|
static IMessageBox.Icon[] |
ICON_MAP
Table mapping icon values to Icon enum.
|
static int |
ICON_NONE
Icon option: none.
|
static int |
ICON_QUESTION
Icon option: question mark.
|
static int |
ICON_WARNING
Icon option: warning.
|
Modifier and Type | Method and Description |
---|---|
void |
messageBox(IMessageBoxReply reply,
IMessageBox.Icon icon,
KString title,
KString message,
KString... buttons)
Displays a message box with the specified title and message.
|
default void |
messageBox(IMessageBoxReply reply,
int icon,
String title,
String message)
Displays a message box with the specified title and message.
|
default void |
messageBox(IMessageBoxReply reply,
int icon,
String title,
String message,
String... buttons)
Displays a message box with the specified title and message.
|
static final int ICON_NONE
static final int ICON_INFORMATION
static final int ICON_QUESTION
static final int ICON_WARNING
static final int ICON_ERROR
static final IMessageBox.Icon[] ICON_MAP
default void messageBox(IMessageBoxReply reply, int icon, String title, String message)
reply
- The reply callback that is called when the user chooses a button or session is closed,
null
for none.icon
- Icon to display, see the ICON_*
values, e.g. ICON_INFORMATION
.title
- The title string, null for none.message
- The message to display, must be non-null.NullPointerException
- If message
is null.default void messageBox(IMessageBoxReply reply, int icon, String title, String message, String... buttons)
reply
- The reply callback that is called when the user chooses a button or session is closed,
null
for none.icon
- Icon to display, see the ICON_*
values, e.g. ICON_INFORMATION
.title
- The title string, null for none.message
- The message to display, must be non-null.buttons
- The strings for the buttons to display, if none, just an OK
button is displayed.
This array of buttons defined the index value returned by this method.NullPointerException
- If icon
or message
is null.void messageBox(IMessageBoxReply reply, IMessageBox.Icon icon, KString title, KString message, KString... buttons)
reply
- The reply callback that is called when the user chooses a button or session is closed,
null
for none.icon
- Icon to display, see the {link Icon}
enumeration.title
- The title string, must be non-null.message
- The message to display, must be non-null.buttons
- The strings for the buttons to display, if none, just an OK
button is displayed.
This array of buttons defined the index value returned by this method.NullPointerException
- If icon
or message
is null, or if any of the elements
in buttons
array is null.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.