info.magnolia.ui.vaadin.overlay
Enum MessageStyleTypeEnum

java.lang.Object
  extended by java.lang.Enum<MessageStyleTypeEnum>
      extended by 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.


Enum Constant Summary
ERROR
           
INFO
           
UNKNOWN
           
WARNING
           
 
Method Summary
 String getCssClass()
           
 Class<?> getIconClass()
           
 String toString()
           
static MessageStyleTypeEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MessageStyleTypeEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final MessageStyleTypeEnum UNKNOWN

ERROR

public static final MessageStyleTypeEnum ERROR

WARNING

public static final MessageStyleTypeEnum WARNING

INFO

public static final MessageStyleTypeEnum INFO
Method Detail

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.