Interface Message
-
- All Known Implementing Classes:
AbstractMessage
,ErrorMessage
,InfoMessage
,SevereMessage
,SuccessMessage
,WarningMessage
public interface Message
User: Yohann Chastagnier Date: 07/11/13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContent()
Gets the content of the message.long
getDisplayLiveTime()
Gets the time to live of the message after to have been displayed.MessageType
getType()
Gets the type of the message.Message
setDisplayLiveTime(long milliseconds)
Sets the time to live of the message after to have been displayed.
-
-
-
Method Detail
-
getType
MessageType getType()
Gets the type of the message.MessageType
- Returns:
- the message type
-
getContent
String getContent()
Gets the content of the message.- Returns:
- the message content
-
setDisplayLiveTime
Message setDisplayLiveTime(long milliseconds)
Sets the time to live of the message after to have been displayed.- Parameters:
milliseconds
- 0 = unlimited- Returns:
- the message
-
getDisplayLiveTime
long getDisplayLiveTime()
Gets the time to live of the message after to have been displayed.- Returns:
- the time in milliseconds.
-
-