com.alee.managers.notification
Enum NotificationIcon

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

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

This enumeration represents available predefined notification icons.

Author:
Mikle Garin
See Also:
NotificationManager

Enum Constant Summary
application
          Application icon.
calendar
          Calendar icon.
clock
          Clock icon.
color
          Color icon.
cross
          Cross icon.
database
          Database icon.
error
          Error icon.
fiilm
          Film icon.
file
          File icon.
fileHor
          Horizontal file icon.
folder
          Folder icon.
folderHor
          Horizontal folder icon.
image
          Image icon.
information
          Information icon.
keyboardButton
          Keyboard button icon.
mail
          Mail icon.
map
          Map icon.
minus
          Minus icon.
plus
          Plus icon.
question
          Question icon.
table
          Table icon.
text
          Text icon.
tip
          Tip icon.
warning
          Warning icon.
 
Method Summary
 javax.swing.ImageIcon getIcon()
          Returns cached icon for this notification type.
static NotificationIcon valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NotificationIcon[] 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

information

public static final NotificationIcon information
Information icon.


warning

public static final NotificationIcon warning
Warning icon.


error

public static final NotificationIcon error
Error icon.


question

public static final NotificationIcon question
Question icon.


plus

public static final NotificationIcon plus
Plus icon.


cross

public static final NotificationIcon cross
Cross icon.


minus

public static final NotificationIcon minus
Minus icon.


tip

public static final NotificationIcon tip
Tip icon.


image

public static final NotificationIcon image
Image icon.


application

public static final NotificationIcon application
Application icon.


file

public static final NotificationIcon file
File icon.


fileHor

public static final NotificationIcon fileHor
Horizontal file icon.


folder

public static final NotificationIcon folder
Folder icon.


folderHor

public static final NotificationIcon folderHor
Horizontal folder icon.


calendar

public static final NotificationIcon calendar
Calendar icon.


text

public static final NotificationIcon text
Text icon.


mail

public static final NotificationIcon mail
Mail icon.


color

public static final NotificationIcon color
Color icon.


database

public static final NotificationIcon database
Database icon.


clock

public static final NotificationIcon clock
Clock icon.


fiilm

public static final NotificationIcon fiilm
Film icon.


keyboardButton

public static final NotificationIcon keyboardButton
Keyboard button icon.


table

public static final NotificationIcon table
Table icon.


map

public static final NotificationIcon map
Map icon.

Method Detail

values

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

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

valueOf

public static NotificationIcon 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

getIcon

public javax.swing.ImageIcon getIcon()
Returns cached icon for this notification type.

Returns:
cached icon for this notification type