public.javadoc.org.spincast.core.flash.FlashMessageDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
FlashMessageDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.flash
Class FlashMessageDefault
- java.lang.Object
-
- org.spincast.core.flash.FlashMessageDefault
-
- All Implemented Interfaces:
- FlashMessage
public class FlashMessageDefault
extends Object
implements FlashMessage
-
-
Constructor Summary
Constructors
Constructor and Description
FlashMessageDefault(FlashMessageLevel messageType,
String text,
JsonManager jsonManager)
FlashMessageDefault(FlashMessageLevel messageType,
String text,
JsonObject variables,
JsonManager jsonManager)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
FlashMessageLevel
getFlashType()
The type of the Flash message.
protected JsonManager
getJsonManager()
String
getText()
The text of the Flash message.
JsonObject
getVariables()
Potential variables associated with this Flash
message.
-
-
Constructor Detail
-
FlashMessageDefault
public FlashMessageDefault(FlashMessageLevel messageType,
@Nullable
String text,
JsonManager jsonManager)
-
FlashMessageDefault
public FlashMessageDefault(FlashMessageLevel messageType,
@Nullable
String text,
@Nullable
JsonObject variables,
JsonManager jsonManager)
-
Method Detail
-
getJsonManager
protected JsonManager getJsonManager()
-
getFlashType
public FlashMessageLevel getFlashType()
Description copied from interface: FlashMessage
The type of the Flash message.
- Specified by:
getFlashType
in interface FlashMessage
-
getText
public String getText()
Description copied from interface: FlashMessage
The text of the Flash message.
- Specified by:
getText
in interface FlashMessage
-
getVariables
public JsonObject getVariables()
Description copied from interface: FlashMessage
Potential variables associated with this Flash
message. May be null
!
- Specified by:
getVariables
in interface FlashMessage
Copyright © 2019. All rights reserved.