public class JcmsToastr
extends java.lang.Object
JcmsContext
or any
of its subclass ( JcmsJspContext
, JcmsFormHandler
...) :
addMsg( new JcmsToastr("jcmsplugin.myplugin.msg") );Example when used in any other class :
JcmsContext.addToastr(request, new JcmsToastr(JcmsUtil.glp(userLang, "jcmsplugin.myplugin.msg")) );
Constructor and Description |
---|
JcmsToastr(MessageLevel level,
java.lang.String message,
java.util.Map<java.lang.String,java.lang.String> optionMap)
Create a new
JcmsToastr with the specified JcmsMessage.Level , message, url and optionMap |
JcmsToastr(java.lang.String message)
Create a new JcmsToastr with the specified message
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
MessageLevel |
getLevel() |
java.lang.String |
getMessage() |
java.util.Map<java.lang.String,java.lang.String> |
getOptionMap() |
int |
hashCode() |
JcmsToastr |
setLevel(MessageLevel level) |
JcmsToastr |
setMessage(java.lang.String message) |
JcmsToastr |
setOptionMap(java.util.Map<java.lang.String,java.lang.String> optionMap) |
public JcmsToastr(java.lang.String message)
message
- the message, must already be I18Nedpublic JcmsToastr(MessageLevel level, java.lang.String message, java.util.Map<java.lang.String,java.lang.String> optionMap)
JcmsToastr
with the specified JcmsMessage.Level
, message, url and optionMaplevel
- MessageLevel
of the messagemessage
- The messageoptionMap
- Map
of options :
"closeButton": "false", "debug": "false", "newestOnTop": "false", "progressBar": "false", "positionClass": "toast-top-right", (toast-bottom-right, toast-bottom-left, toast-top-left, toast-top-full-width, toast-bottom-full-width, toast-top-center, toast-bottom-center) "preventDuplicates": "false", "url": "www.google.fr", "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut"
public MessageLevel getLevel()
public JcmsToastr setLevel(MessageLevel level)
public java.lang.String getMessage()
public JcmsToastr setMessage(java.lang.String message)
public java.util.Map<java.lang.String,java.lang.String> getOptionMap()
public JcmsToastr setOptionMap(java.util.Map<java.lang.String,java.lang.String> optionMap)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2001-2018 Jalios SA. All Rights Reserved.