com.alee.managers.notification
Enum NotificationStyle

java.lang.Object
  extended by java.lang.Enum<NotificationStyle>
      extended by com.alee.managers.notification.NotificationStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NotificationStyle>

public enum NotificationStyle
extends java.lang.Enum<NotificationStyle>

This enumeration represents available predefined notification popup styles.

Author:
Mikle Garin
See Also:
NotificationManager

Enum Constant Summary
mac
          Mac OS X notification style.
web
          WebLaF notification style.
 
Method Summary
 Painter getPainter()
          Returns cached painter for this notification style.
static NotificationStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NotificationStyle[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

web

public static final NotificationStyle web
WebLaF notification style.


mac

public static final NotificationStyle mac
Mac OS X notification style.

Method Detail

values

public static NotificationStyle[] 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 (NotificationStyle c : NotificationStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NotificationStyle valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getPainter

public Painter getPainter()
Returns cached painter for this notification style.

Returns:
cached painter for this notification style