public class MessageUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MessageUtil.CompleteConfirmHandler |
static interface |
MessageUtil.ConfirmHandler |
static class |
MessageUtil.ConfirmParams |
static class |
MessageUtil.MessageType |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_CONFIRM_TITLE_KEY |
protected static String |
DEFAULT_ERROR_TITLE_KEY |
protected static String |
DEFAULT_INFO_TITLE_KEY |
protected static String |
DEFAULT_WARNING_TITLE_KEY |
| Constructor and Description |
|---|
MessageUtil() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getLabel(String key,
Object... args) |
static void |
showConfirm(MessageUtil.ConfirmHandler handler,
String messageKey) |
static void |
showConfirm(MessageUtil.ConfirmHandler handler,
String messageKey,
Object[] args) |
static void |
showConfirm(MessageUtil.ConfirmHandler handler,
String messageKey,
Object[] args,
String titleKey,
Object[] titleArgs,
String okLabelKey,
String cancelLabelKey) |
static void |
showConfirm(MessageUtil.ConfirmParams params) |
static void |
showError(String messageKey,
Object... args) |
static void |
showInfo(String messageKey,
Object... args) |
static void |
showMessage(MessageUtil.MessageType type,
String messageKey,
Object... args) |
static void |
showMessage(MessageUtil.MessageType type,
String messageKey,
Object[] args,
String titleKey,
Object[] titleArgs) |
static void |
showWarning(String messageKey,
Object... args) |
protected static final String DEFAULT_CONFIRM_TITLE_KEY
protected static final String DEFAULT_INFO_TITLE_KEY
protected static final String DEFAULT_WARNING_TITLE_KEY
protected static final String DEFAULT_ERROR_TITLE_KEY
public static void showMessage(MessageUtil.MessageType type, String messageKey, Object... args)
public static void showMessage(MessageUtil.MessageType type, String messageKey, Object[] args, String titleKey, Object[] titleArgs)
public static void showConfirm(MessageUtil.ConfirmHandler handler, String messageKey)
public static void showConfirm(MessageUtil.ConfirmHandler handler, String messageKey, Object[] args)
public static void showConfirm(MessageUtil.ConfirmHandler handler, String messageKey, Object[] args, String titleKey, Object[] titleArgs, String okLabelKey, String cancelLabelKey)
public static void showConfirm(MessageUtil.ConfirmParams params)
Copyright © 2020 Open Foris. All rights reserved.