Package org.javlo.message
Class GenericMessage
- java.lang.Object
-
- org.javlo.message.GenericMessage
-
public class GenericMessage extends Object
- Author:
- pvandermaesen object for set a global message.
-
-
Field Summary
Fields Modifier and Type Field Description static intALERTstatic GenericMessageEMPTY_MESSAGEstatic intERRORstatic intHELPstatic intINFOstatic intSUCCESS
-
Constructor Summary
Constructors Constructor Description GenericMessage(String rawMessage)create generic message from rawGenericMessage(String msg, int newType)GenericMessage(String msg, int newType, String url)GenericMessage(String msg, String inKey, int newType)GenericMessage(String msg, String inKey, int newType, String inURL)GenericMessage(GenericMessage msg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringgetBootstrapIcon(int type)StringgetBootstrapType()StringgetCleanMessage()StringgetKey()StringgetMessage()StringgetMessageDisplay()StringgetRawMessage()StringgetText()Deprecated.intgetType()StringgetTypeLabel()static StringgetTypeLabel(int type)StringgetURL()StringgetXhtml()return XHTML code for the current message listbooleanisDisplayed()booleanisNeedDisplay()voidsetCleanMessage(String cleanMessage)voidsetDisplayed(boolean displayed)StringtoString()
-
-
-
Field Detail
-
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
-
ALERT
public static final int ALERT
- See Also:
- Constant Field Values
-
INFO
public static final int INFO
- See Also:
- Constant Field Values
-
HELP
public static final int HELP
- See Also:
- Constant Field Values
-
SUCCESS
public static final int SUCCESS
- See Also:
- Constant Field Values
-
EMPTY_MESSAGE
public static final GenericMessage EMPTY_MESSAGE
-
-
Constructor Detail
-
GenericMessage
public GenericMessage(String rawMessage)
create generic message from raw- Parameters:
rawMessage-
-
GenericMessage
public GenericMessage(String msg, int newType)
-
GenericMessage
public GenericMessage(GenericMessage msg)
-
-
Method Detail
-
getKey
public String getKey()
-
getText
@Deprecated public String getText()
Deprecated.
-
getMessage
public String getMessage()
- Returns:
-
getMessageDisplay
public String getMessageDisplay()
- Returns:
-
isNeedDisplay
public boolean isNeedDisplay()
-
isDisplayed
public boolean isDisplayed()
-
setDisplayed
public void setDisplayed(boolean displayed)
-
getCleanMessage
public String getCleanMessage()
-
setCleanMessage
public void setCleanMessage(String cleanMessage)
-
getType
public int getType()
- Returns:
-
getTypeLabel
public static String getTypeLabel(int type)
-
getBootstrapIcon
public static String getBootstrapIcon(int type)
-
getBootstrapType
public String getBootstrapType()
-
getTypeLabel
public String getTypeLabel()
-
getURL
public String getURL()
-
getXhtml
public String getXhtml()
return XHTML code for the current message list- Returns:
-
getRawMessage
public String getRawMessage()
-
-