info.magnolia.ui.vaadin.overlay
Enum MessageStyleTypeEnum
java.lang.Object
java.lang.Enum<MessageStyleTypeEnum>
info.magnolia.ui.vaadin.overlay.MessageStyleTypeEnum
- All Implemented Interfaces:
- MessageStyleType, Serializable, Comparable<MessageStyleTypeEnum>
public enum MessageStyleTypeEnum
- extends Enum<MessageStyleTypeEnum>
- implements MessageStyleType
Enumeration of configured MessageStyleTypes.
UNKNOWN
public static final MessageStyleTypeEnum UNKNOWN
ERROR
public static final MessageStyleTypeEnum ERROR
WARNING
public static final MessageStyleTypeEnum WARNING
INFO
public static final MessageStyleTypeEnum INFO
values
public static MessageStyleTypeEnum[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (MessageStyleTypeEnum c : MessageStyleTypeEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MessageStyleTypeEnum valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
toString
public String toString()
- Overrides:
toString
in class Enum<MessageStyleTypeEnum>
getCssClass
public String getCssClass()
- Specified by:
getCssClass
in interface MessageStyleType
- Returns:
- The css class name to use for the message panel.
getIconClass
public Class<?> getIconClass()
- Specified by:
getIconClass
in interface MessageStyleType
- Returns:
- the java class of the icon.
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.