Interface Message
-
- All Known Implementing Classes:
DefaultMessage
,WebSudoMessage
public interface Message
A message to display on a page
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCssClass()
Gets the name of the CSS class associated with this message.String
getId()
Get the unique ID for this message.String
getText()
Get the text for this messageboolean
isClosable()
Determines whether the message can be closedboolean
isVisible()
Determines whether the message should be shown
-
-
-
Method Detail
-
getId
String getId()
Get the unique ID for this message.- Returns:
- message id
-
getText
String getText()
Get the text for this message- Returns:
- message text
-
getCssClass
String getCssClass()
Gets the name of the CSS class associated with this message. The class name can be used to style the message- Returns:
- String name of the css class
-
isClosable
boolean isClosable()
Determines whether the message can be closed- Returns:
- boolean
-
isVisible
boolean isVisible()
Determines whether the message should be shown- Returns:
- boolean
-
-