org.openpermis.editor.policy.view
Enum MessageDialog.Style

java.lang.Object
  extended by java.lang.Enum<MessageDialog.Style>
      extended by org.openpermis.editor.policy.view.MessageDialog.Style
All Implemented Interfaces:
Serializable, Comparable<MessageDialog.Style>
Enclosing class:
MessageDialog

public static enum MessageDialog.Style
extends Enum<MessageDialog.Style>

The dialog style enumeration.

Since:
0.9.0

Enum Constant Summary
ERROR
          Error dialog.
PLAIN
          Plain dialog.
QUESTION
          Question dialog.
WARNING
          Warning dialog.
 
Method Summary
 String getIconKey()
          Returns the resource key for the icon.
static MessageDialog.Style valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MessageDialog.Style[] 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

PLAIN

public static final MessageDialog.Style PLAIN
Plain dialog.

Since:
0.9.0

WARNING

public static final MessageDialog.Style WARNING
Warning dialog.

Since:
0.9.0

ERROR

public static final MessageDialog.Style ERROR
Error dialog.

Since:
0.9.0

QUESTION

public static final MessageDialog.Style QUESTION
Question dialog.

Since:
0.9.0
Method Detail

values

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

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

valueOf

public static MessageDialog.Style 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

getIconKey

public String getIconKey()
Returns the resource key for the icon.

Returns:
the resource key for the icon.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG