Class MessageUtil
- java.lang.Object
-
- org.openforis.collect.designer.util.MessageUtil
-
public class MessageUtil extends Object
- Author:
- S. Ricci
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMessageUtil.CompleteConfirmHandlerstatic interfaceMessageUtil.ConfirmHandlerstatic classMessageUtil.ConfirmParamsstatic classMessageUtil.MessageType
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_CONFIRM_TITLE_KEYprotected static StringDEFAULT_ERROR_TITLE_KEYprotected static StringDEFAULT_INFO_TITLE_KEYprotected static StringDEFAULT_WARNING_TITLE_KEY
-
Constructor Summary
Constructors Constructor Description MessageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static StringgetLabel(String key, Object... args)static voidshowConfirm(MessageUtil.ConfirmHandler handler, String messageKey)static voidshowConfirm(MessageUtil.ConfirmHandler handler, String messageKey, Object[] args)static voidshowConfirm(MessageUtil.ConfirmHandler handler, String messageKey, Object[] args, String titleKey, Object[] titleArgs, String okLabelKey, String cancelLabelKey)static voidshowConfirm(MessageUtil.ConfirmParams params)static voidshowError(String messageKey, Object... args)static voidshowInfo(String messageKey, Object... args)static voidshowMessage(MessageUtil.MessageType type, String messageKey, Object... args)static voidshowMessage(MessageUtil.MessageType type, String messageKey, Object[] args, String titleKey, Object[] titleArgs)static voidshowWarning(String messageKey, Object... args)
-
-
-
Field Detail
-
DEFAULT_CONFIRM_TITLE_KEY
protected static final String DEFAULT_CONFIRM_TITLE_KEY
- See Also:
- Constant Field Values
-
DEFAULT_INFO_TITLE_KEY
protected static final String DEFAULT_INFO_TITLE_KEY
- See Also:
- Constant Field Values
-
DEFAULT_WARNING_TITLE_KEY
protected static final String DEFAULT_WARNING_TITLE_KEY
- See Also:
- Constant Field Values
-
DEFAULT_ERROR_TITLE_KEY
protected static final String DEFAULT_ERROR_TITLE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
showMessage
public static void showMessage(MessageUtil.MessageType type, String messageKey, Object... args)
-
showMessage
public static void showMessage(MessageUtil.MessageType type, String messageKey, Object[] args, String titleKey, Object[] titleArgs)
-
showConfirm
public static void showConfirm(MessageUtil.ConfirmHandler handler, String messageKey)
-
showConfirm
public static void showConfirm(MessageUtil.ConfirmHandler handler, String messageKey, Object[] args)
-
showConfirm
public static void showConfirm(MessageUtil.ConfirmHandler handler, String messageKey, Object[] args, String titleKey, Object[] titleArgs, String okLabelKey, String cancelLabelKey)
-
showConfirm
public static void showConfirm(MessageUtil.ConfirmParams params)
-
-