com.alee.managers.notification
Enum NotificationOption

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

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

This enumeration represents available predefined question notification option types.

Author:
Mikle Garin

Enum Constant Summary
accept
          Accept option.
apply
          Decline option.
cancel
          Cancel option.
choose
          Choose option.
commit
          Decline option.
decline
          Decline option.
discard
          Discard option.
no
          No option.
open
          Open option.
reset
          Reset option.
retry
          Retry option.
save
          Save option.
yes
          Yes option.
 
Method Summary
 java.lang.String getLanguageKey()
          Returns language key for this option.
 java.lang.String getText()
          Returns translation text for this option.
static NotificationOption valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NotificationOption[] 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

yes

public static final NotificationOption yes
Yes option.


no

public static final NotificationOption no
No option.


cancel

public static final NotificationOption cancel
Cancel option.


choose

public static final NotificationOption choose
Choose option.


accept

public static final NotificationOption accept
Accept option.


decline

public static final NotificationOption decline
Decline option.


apply

public static final NotificationOption apply
Decline option.


commit

public static final NotificationOption commit
Decline option.


discard

public static final NotificationOption discard
Discard option.


reset

public static final NotificationOption reset
Reset option.


retry

public static final NotificationOption retry
Retry option.


save

public static final NotificationOption save
Save option.


open

public static final NotificationOption open
Open option.

Method Detail

values

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

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

valueOf

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

getLanguageKey

public java.lang.String getLanguageKey()
Returns language key for this option.

Returns:
language key for this option

getText

public java.lang.String getText()
Returns translation text for this option.

Returns:
translation text for this option