Class ExplanatoryMessage
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.ExplanatoryMessage
- All Implemented Interfaces:
Serializable
A wrapper around a label that supports text as well as placement of where that text appears
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
ConstructorsConstructorDescriptionExplanatoryMessage
(InternationalizedMessage message, ExplanatoryMessage.Placement placement, ExplanatoryMessage.Type type) ExplanatoryMessage
(String message) Initializes the given text with the default placement ofExplanatoryMessage.Placement.RIGHT
and the default type ofExplanatoryMessage.Type.INFO
.ExplanatoryMessage
(String message, ExplanatoryMessage.Placement placement) Initializes the given text with a customized placement and the default type ofExplanatoryMessage.Type.INFO
ExplanatoryMessage
(String message, ExplanatoryMessage.Placement placement, ExplanatoryMessage.Type type) Initializes the given text with a customized placement and typeExplanatoryMessage
(String message, ExplanatoryMessage.Type type) Initializes the given text with a specific type and the default placement ofExplanatoryMessage.Placement.RIGHT
-
Method Summary
-
Constructor Details
-
ExplanatoryMessage
Initializes the given text with the default placement ofExplanatoryMessage.Placement.RIGHT
and the default type ofExplanatoryMessage.Type.INFO
.- Parameters:
message
- the text to display, can be a key in a message bundle for I18n
-
ExplanatoryMessage
Initializes the given text with a specific type and the default placement ofExplanatoryMessage.Placement.RIGHT
- Parameters:
message
- the text to display to the usertype
- the type of text to display
-
ExplanatoryMessage
Initializes the given text with a customized placement and the default type ofExplanatoryMessage.Type.INFO
- Parameters:
message
- the text to display to the userplacement
- where the text should display in relationship to the field
-
ExplanatoryMessage
public ExplanatoryMessage(String message, ExplanatoryMessage.Placement placement, ExplanatoryMessage.Type type) Initializes the given text with a customized placement and type- Parameters:
message
- the text to display to the userplacement
- where the text should display in relationship to the fieldtype
- the type of text to display
-
ExplanatoryMessage
-
ExplanatoryMessage
public ExplanatoryMessage(InternationalizedMessage message, ExplanatoryMessage.Placement placement, ExplanatoryMessage.Type type)
-
-
Method Details
-
getMessage
The user-facing name of the text -
getPlacement
Where the text or icon appears in relation to the field -
getType
The type of text to display -
equals
-
hashCode
public int hashCode() -
toString
-