Package io.jans.casa.ui
Class UIUtils
java.lang.Object
io.jans.casa.ui.UIUtils
Utility class to show auto-dismiss notification success/error ZK notification boxes.
- Author:
- jgomer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDuration (in ms) used for auto-dismiss in error messages.static final intDuration (in ms) used for auto-dismiss in successful messages. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidshowMessageUI(boolean success) Shows a notification box with a generic success or error message.static voidshowMessageUI(boolean success, String msg) Shows a notification box with the supplied success or error message, in the middle of the screen.static voidshowMessageUI(boolean success, String msg, String position) Shows a notification box with the supplied success or error message, in the position passed in the parameter.static voidshowMessageUI(String notificationType, String msg)
-
Field Details
-
FEEDBACK_DELAY_SUCC
public static final int FEEDBACK_DELAY_SUCCDuration (in ms) used for auto-dismiss in successful messages.- See Also:
-
FEEDBACK_DELAY_ERR
public static final int FEEDBACK_DELAY_ERRDuration (in ms) used for auto-dismiss in error messages.- See Also:
-
-
Method Details
-
showMessageUI
public static void showMessageUI(boolean success) Shows a notification box with a generic success or error message.- Parameters:
success- Whether to use the success or error message
-
showMessageUI
Shows a notification box with the supplied success or error message, in the middle of the screen.- Parameters:
success- Whether to use the success or error messagemsg- Message to show inside the box
-
showMessageUI
Shows a notification box with the supplied success or error message, in the position passed in the parameter.- Parameters:
success- Whether to use the success or error messagemsg- Message to show inside the boxposition- A string indicating the position (for a list of possible values see "useful Java utilities" in ZK developer's reference manual)
-
showMessageUI
-