Interface Message
-
- All Known Implementing Classes:
AbstractMessage,ErrorMessage,InfoMessage,SevereMessage,SuccessMessage,WarningMessage
public interface MessageUser: Yohann Chastagnier Date: 07/11/13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContent()Gets the content of the message.longgetDisplayLiveTime()Gets the time to live of the message after to have been displayed.MessageTypegetType()Gets the type of the message.MessagesetDisplayLiveTime(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.
-
-