Package org.spincast.core.flash
Class FlashMessageDefault
java.lang.Object
org.spincast.core.flash.FlashMessageDefault
- All Implemented Interfaces:
FlashMessage
-
Constructor Summary
ConstructorDescriptionFlashMessageDefault
(FlashMessageLevel messageType, String text, JsonManager jsonManager) FlashMessageDefault
(FlashMessageLevel messageType, String text, JsonObject variables, JsonManager jsonManager) -
Method Summary
Modifier and TypeMethodDescriptionThe type of the Flash message.protected JsonManager
getText()
The text of the Flash message.Potential variables associated with this Flash message.
-
Constructor Details
-
FlashMessageDefault
public FlashMessageDefault(FlashMessageLevel messageType, @Nullable String text, JsonManager jsonManager) -
FlashMessageDefault
public FlashMessageDefault(FlashMessageLevel messageType, @Nullable String text, @Nullable JsonObject variables, JsonManager jsonManager)
-
-
Method Details
-
getJsonManager
-
getFlashType
Description copied from interface:FlashMessage
The type of the Flash message.- Specified by:
getFlashType
in interfaceFlashMessage
-
getText
Description copied from interface:FlashMessage
The text of the Flash message.- Specified by:
getText
in interfaceFlashMessage
-
getVariables
Description copied from interface:FlashMessage
Potential variables associated with this Flash message. May benull
!- Specified by:
getVariables
in interfaceFlashMessage
-