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 int
ALERT
static GenericMessage
EMPTY_MESSAGE
static int
ERROR
static int
HELP
static int
INFO
static int
SUCCESS
-
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 String
getBootstrapIcon(int type)
String
getBootstrapType()
String
getCleanMessage()
String
getKey()
String
getMessage()
String
getMessageDisplay()
String
getRawMessage()
String
getText()
Deprecated.int
getType()
String
getTypeLabel()
static String
getTypeLabel(int type)
String
getURL()
String
getXhtml()
return XHTML code for the current message listboolean
isDisplayed()
boolean
isNeedDisplay()
void
setCleanMessage(String cleanMessage)
void
setDisplayed(boolean displayed)
String
toString()
-
-
-
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()
-
-